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