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", confirmButtonClass: "el-button--danger",
}) })
.then(() => { .then(() => {
this.$router.replace({ path: "/login" }).then(() => { this.$TOOL.data.remove("TOKEN")
location.reload(); this.$router.push(`/login?redirect=${this.$route.fullPath}`)
});
}) })
.catch(() => { .catch(() => {
//退 //退