mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
提交
This commit is contained in:
@@ -54,7 +54,7 @@ http.interceptors.response.use(
|
|||||||
const {
|
const {
|
||||||
data: { code, msg, show },
|
data: { code, msg, show },
|
||||||
} = response;
|
} = response;
|
||||||
if (code === 0 || code === 200) {
|
if (code === 0 || code === 200 || response?.data?.status == 200) {
|
||||||
return response;
|
return response;
|
||||||
} else if (code === 1000) {
|
} else if (code === 1000) {
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user