fix: 按钮修改

This commit is contained in:
mx00085@163.com
2023-03-09 16:16:27 +08:00
parent dd76f32361
commit 6b073227bb
4 changed files with 61 additions and 27 deletions

View File

@@ -25,7 +25,6 @@ http.interceptors.request.use(
config.headers.token = token; //测试1111
} else{
message.error('未获取到登录信息,请先登录')
return window.location.href='https://u-pre.boe.com/web/';
}
return config;
},
@@ -50,7 +49,6 @@ http.interceptors.response.use(
}
if(code==601){
message.error('token过期请重新登陆');
return window.location.href='https://u-pre.boe.com/web/';
}
if (code === 1000) {
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ? router.push({path: 'login'}) : (window.location.href = process.env.VUE_APP_LOGIN_URL)