feat: base 退出后登录可重定向rediect

This commit is contained in:
caoqianming 2024-03-11 13:33:00 +08:00
parent 052821526e
commit efe3bb7777
1 changed files with 2 additions and 3 deletions

View File

@ -165,9 +165,8 @@ export default {
confirmButtonClass: "el-button--danger",
})
.then(() => {
this.$router.replace({ path: "/login" }).then(() => {
location.reload();
});
this.$TOOL.data.remove("TOKEN")
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
})
.catch(() => {
//退