Merge branch 'dw_master' into boe_dongwu0919

This commit is contained in:
joshen@zcwytd.com
2023-09-20 17:26:31 +08:00
7 changed files with 13 additions and 10 deletions

View File

@@ -495,9 +495,7 @@ export async function request(_url, params) {
return res;
}
if (res.code === 1000 || res.code === 1002) {
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ?
router.push({path: 'login', query: { returnUrl: router.currentRoute.value.fullPath }}) :
(window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath))
window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath)
localStorage.removeItem('refreshPage')
return Promise.reject(res);
}else if(res.code=== 1001){