From fa2766f1b9323a348e4dfe0ab94872018f324dae Mon Sep 17 00:00:00 2001 From: songsong428 Date: Mon, 9 Mar 2020 12:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- pages/index/components/home.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 65c6891..4472587 100644 --- a/main.js +++ b/main.js @@ -32,7 +32,7 @@ Vue.prototype.openPage = function(path, query = '') { // 白名单页面 const whiteListPath = ['/pages/basic-info/basic-info','/pages/statistics/statistics','/pages/user-code/user-code'] const choosePath = whiteListPath.indexOf(path) - if(!store.state.user.userInfo && !store.state.user.userInfo.id && choosePath === -1) { + if(!store.state.user.userInfo.id && choosePath === -1) { url = '/pages/basic-info/basic-info'; } diff --git a/pages/index/components/home.vue b/pages/index/components/home.vue index 2b70cd5..70137ac 100644 --- a/pages/index/components/home.vue +++ b/pages/index/components/home.vue @@ -1,6 +1,6 @@