From d68f9c8dfa4873a68a4fa627a18a756b00ed95f5 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Thu, 10 Jul 2025 16:57:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BD=BF=E7=94=A8vuex=5Ftoken?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3vuex=5Fuser=EF=BC=8C=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E9=9D=A2=E5=AF=BC=E8=88=AA=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 ++---- static/common/js/config.js | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/App.vue b/App.vue index 44e7f02..ab2d988 100644 --- a/App.vue +++ b/App.vue @@ -35,13 +35,11 @@ export default { }, }); - // debugger; - - if (!that.vuex_user) { + if (!that.vuex_token) { this.$u.vuex("vuex_user", ""); this.$u.vuex("vuex_token", ""); uni.clearStorage(); - uni.navigateTo({ + uni.reLaunch({ url: "/pages/login/login/index", }); return; diff --git a/static/common/js/config.js b/static/common/js/config.js index 2e60798..e95cfa7 100644 --- a/static/common/js/config.js +++ b/static/common/js/config.js @@ -1,6 +1,7 @@ export default { //不需要登录的页面,白名单 whiteList: [ + "/pages/login/login/index", "/pages/login/login/login", "/pages/login/register/register", "/pages/login/confirmPwd/confirmPwd",