From 6947ebbdc1b90d6e7b018c7de4edeb9ccd7344ac Mon Sep 17 00:00:00 2001 From: wxyclub Date: Thu, 12 Oct 2023 15:40:06 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.js b/src/main.js index 0ecb50f39..4d1f7149b 100644 --- a/src/main.js +++ b/src/main.js @@ -298,6 +298,10 @@ router.beforeEach(function (to, from, next) { } } } else { + localStorage.removeItem("routerUrl") + localStorage.setItem('routerUrl', 'home2') + localStorage.removeItem("routerParam") + localStorage.setItem('routerParam', '') if ((token === null || token === '' ) && toName === 'OtherStandardDetails') { if (document.cookie) { next()