|
|
@ -10,7 +10,9 @@ console.log("getCurrentPages",apages) |
|
|
|
function hasPermission (url) { |
|
|
|
console.log('url',url); |
|
|
|
// let islogin = sessionStorage.getItem("isLogin");
|
|
|
|
let islogin = this.$store.state.hasLogin |
|
|
|
|
|
|
|
let islogin = sessionStorage.getItem("hasLogin") |
|
|
|
// let islogin = this.$store.state.hasLogin
|
|
|
|
islogin = Boolean(Number(islogin));//返回布尔值
|
|
|
|
// 在白名单中或有登录判断条件可以直接跳转
|
|
|
|
if(whiteList.indexOf(url) !== -1 || islogin) { |
|
|
|