This commit is contained in:
cclu 2023-04-23 18:43:56 +08:00
parent 1e78c73715
commit c887146ee8
2 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,17 @@ export default {
if (query.type){ if (query.type){
this.type = 'index' 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() { onUnload() {
this.$util.addUserBehavior() this.$util.addUserBehavior()