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", });