|
@@ -82,6 +82,7 @@ service.interceptors.response.use(res => {
|
|
|
// // window.location.href = 'https://icas.jnu.edu.cn/cas/login?service=http://localhost:8081/#/login';
|
|
|
// return
|
|
|
// }
|
|
|
+ debugger
|
|
|
if(res.config.url == '/auth/logout'&&res.request.responseURL){
|
|
|
window.location.href = res.request.responseURL;
|
|
|
return
|
|
@@ -99,11 +100,6 @@ service.interceptors.response.use(res => {
|
|
|
).then(() => {
|
|
|
localStorage.removeItem('serviceType');
|
|
|
store.dispatch('LogOut').then(() => {
|
|
|
- // localStorage.removeItem('serviceType');
|
|
|
- router.replace({
|
|
|
- path: '/login'
|
|
|
- })
|
|
|
- // location.href = '/index';
|
|
|
})
|
|
|
return
|
|
|
}).catch(() => {});
|