-- 修改跳转

This commit is contained in:
yuping
2022-12-26 19:28:44 +08:00
parent fed2759ff7
commit 11a45956b3
7 changed files with 11 additions and 11 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,'_self')
import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_top')
}
// if (import.meta.env.DEV && response.code === 1000) {
// router.push({path: '/login'})