fix: 修复登录逻辑,使用vuex_token替代vuex_user,并更新页面导航方式

This commit is contained in:
yangzhe 2025-07-10 16:57:01 +08:00
parent 9ef6a78e10
commit d68f9c8dfa
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -1,6 +1,7 @@
export default {
//不需要登录的页面,白名单
whiteList: [
"/pages/login/login/index",
"/pages/login/login/login",
"/pages/login/register/register",
"/pages/login/confirmPwd/confirmPwd",