|
@@ -84,8 +84,7 @@ service.interceptors.response.use(res => {
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
- // window.location.href = res.request.responseURL;
|
|
|
|
- window.location.href = 'http://localhost:8081/login';
|
|
|
|
|
|
+ window.location.href = res.request.responseURL;
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (code == 401) {
|
|
if (code == 401) {
|