1.token失效时退出到后台登录页
parent
54363c66b6
commit
ed9dc1c0c3
|
|
@ -59,7 +59,7 @@ service.interceptors.response.use(
|
|||
type: 'warning',
|
||||
}).then(() => {
|
||||
localStorage.clear(); // @vueuse/core 自动导入
|
||||
window.location.href = data;
|
||||
window.location.href = data.logout;
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue