From ec9d8982d61d688e759055698f054c8ece423740 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Mon, 18 Nov 2024 09:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/utils/request.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/App.vue b/src/App.vue index f7ef837..7f83a74 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,6 +30,7 @@ const resetTimer = () => { } let backurl = window.location.href; tools.data.set("backUrl", backurl); + tools.data.remove('token'); router.replace({ path: "/guide", }); diff --git a/src/utils/request.js b/src/utils/request.js index e19667d..e5fc36c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -40,6 +40,7 @@ axios.interceptors.response.use( let backurl=window.location.href; tools.data.set("backUrl",backurl); + tools.data.remove('token'); router.replace({ path: "/guide", });