diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 357f769e..c54d57c5 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -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(() => { //取消退出