-- 详情不打开新页面

This commit is contained in:
yuping
2022-12-26 12:59:17 +08:00
parent 0d1c39460c
commit 84a5231564
6 changed files with 8 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ export async function request(_url, params) {
}).then(resp => resp.data).then(response => {
if (response.code !== 200 && response.code !== 0) {
if (response.code === 1000) {
import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL)
import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_self')
}
// if (import.meta.env.DEV && response.code === 1000) {
// router.push({path: '/login'})