fix: 修复登录逻辑,使用vuex_token替代vuex_user,并更新页面导航方式
This commit is contained in:
parent
9ef6a78e10
commit
d68f9c8dfa
6
App.vue
6
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;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export default {
|
||||
//不需要登录的页面,白名单
|
||||
whiteList: [
|
||||
"/pages/login/login/index",
|
||||
"/pages/login/login/login",
|
||||
"/pages/login/register/register",
|
||||
"/pages/login/confirmPwd/confirmPwd",
|
||||
|
|
Loading…
Reference in New Issue