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