Browse Source

修改已经登录

wms3.0_pda
lijuncheng 10 months ago
parent
commit
e1338a9e99
  1. 4
      router/index.js

4
router/index.js

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

Loading…
Cancel
Save