|
@@ -55,9 +55,9 @@ service.interceptors.request.use(config => {
|
|
|
}
|
|
|
// 弹层相关
|
|
|
loadingCount ++;
|
|
|
- if(config.url == '/auth/logout'){
|
|
|
- window.location.href = 'http://192.168.1.43/labSystem/auth/login';
|
|
|
- }
|
|
|
+ // if(config.url == '/auth/logout'){
|
|
|
+ // window.location.href = 'http://192.168.1.43/labSystem/auth/login';
|
|
|
+ // }
|
|
|
return config
|
|
|
}, error => {
|
|
|
// 弹层相关
|
|
@@ -85,10 +85,10 @@ service.interceptors.response.use(res => {
|
|
|
// // window.location.href = 'https://icas.jnu.edu.cn/cas/login?service=http://localhost:8081/#/login';
|
|
|
// return
|
|
|
// }
|
|
|
- if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
|
- window.location.href = res.request.responseURL;
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
|
+ // window.location.href = res.request.responseURL;
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (code == 401) {
|
|
|
if(!localStorage.getItem('serviceType')){
|
|
|
localStorage.setItem('serviceType','1')
|