|
@ -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 whiteListPath = ['/pages/basic-info/basic-info','/pages/statistics/statistics','/pages/user-code/user-code'] |
|
|
const choosePath = whiteListPath.indexOf(path) |
|
|
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'; |
|
|
url = '/pages/basic-info/basic-info'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|