update
This commit is contained in:
parent
1e78c73715
commit
c887146ee8
@ -24,6 +24,17 @@ export default {
|
||||
if (query.type){
|
||||
this.type = 'index'
|
||||
}
|
||||
let userInfo = uni.getStorageSync('vuex')
|
||||
userInfo = JSON.parse(userInfo)
|
||||
console.log('userInfo',userInfo)
|
||||
console.log(userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee'])
|
||||
if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
|
||||
setTimeout(()=>{
|
||||
uni.switchTab({
|
||||
url:`/pages/index/index`
|
||||
})
|
||||
},200)
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
this.$util.addUserBehavior()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user