From 84f2898d282af4ba36ca6ece5fd0d7fafe6fac21 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 15 Jan 2024 17:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=94=80=E6=9C=BA=E6=88=BF=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B8=85=E9=99=A4token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 -- src/views/setIdentification.vue | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7a727107..c3fef601 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -97,8 +97,6 @@ router.beforeEach((to, from, next) => { let isMurmur = JSON.parse(getIsMurmur) if(isMurmur&& murmurStr){ const toName = to.name === 'login'; - console.log(to); - if (toName) { next({ name: 'home' }); } else { diff --git a/src/views/setIdentification.vue b/src/views/setIdentification.vue index b9b2ef4f..efb0453c 100644 --- a/src/views/setIdentification.vue +++ b/src/views/setIdentification.vue @@ -83,6 +83,7 @@ export default defineComponent({ message.success('successfully delete'); localStorage.removeItem('murmurStr') setCookie("isMurmur", false); + WriteCookie("token"); }) .catch((res) => { });