|
@@ -55,6 +55,9 @@ service.interceptors.request.use(config => {
|
|
|
}
|
|
|
// 弹层相关
|
|
|
loadingCount ++;
|
|
|
+ if(config.url == '/auth/logout'){
|
|
|
+ window.location.href = 'http://192.168.1.43/labSystem/auth/login';
|
|
|
+ }
|
|
|
return config
|
|
|
}, error => {
|
|
|
// 弹层相关
|
|
@@ -83,7 +86,6 @@ service.interceptors.response.use(res => {
|
|
|
// return
|
|
|
// }
|
|
|
if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
|
- debugger
|
|
|
window.location.href = res.request.responseURL;
|
|
|
return
|
|
|
}
|