feat: base 退出后登录可重定向rediect
This commit is contained in:
parent
052821526e
commit
efe3bb7777
|
@ -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(() => {
|
||||||
//取消退出
|
//取消退出
|
||||||
|
|
Loading…
Reference in New Issue