【修改】修改导航不出现

This commit is contained in:
zhoulingpo
2023-04-26 10:31:11 +08:00
parent f70ee30a07
commit 1c4458ec50
3 changed files with 14 additions and 14 deletions
+9 -5
View File
@@ -55,15 +55,22 @@ export default {
popoverValue: false
}
},
props:{
menuAllDate:{
type:Array
}
},
computed: {
...mapGetters({
menuData: 'menuData'
}),
isSystemManager () {
return this.menuData.some(menu => menu.id === 'AVL9YSB7ZF')
console.log(this.menuData,"this.menuData")
return this.menuAllDate.some(menu => menu.id === 'AVL9YSB7ZF')
},
isSystemManagerBelong () {
return this.menuData.some(menu => menu.id === 'AVL9YSB7ZF' && menu.belong == 1)
console.log(this.menuData,"isSystemManager")
return this.menuAllDate.some(menu => menu.id === 'AVL9YSB7ZF' && menu.belong == 1)
}
},
methods: {
@@ -77,9 +84,6 @@ export default {
this.$api.login.logout().then(_ => {
this.$message.success('退出成功')
this.$store.commit('saveUserInfo', null)
this.$store.commit('savePathUrl', null)
this.$store.commit('saveMenuName', null)
this.$store.commit('saveMenuData', null)
this.$store.commit('setHandleProcess', null)
// var sevice = "http://"+window.location.host+"/";
// var serviceUrl = encodeURIComponent(sevice);