From efe3bb77776965ca0312caf6f9fe6994d1975d5c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 11 Mar 2024 13:33:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E9=80=80=E5=87=BA=E5=90=8E?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=8F=AF=E9=87=8D=E5=AE=9A=E5=90=91rediect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/userbar.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(() => { //取消退出