【修改】修改导航不出现
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user