1.token失效时退出到后台登录页

v1.0.0
sws 2024-09-09 14:00:31 +08:00
parent 54363c66b6
commit ed9dc1c0c3
1 changed files with 1 additions and 1 deletions

View File

@ -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 {