【修改】修改导航不出现

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
+5 -5
View File
@@ -1,8 +1,7 @@
<template>
<el-container>
<el-header>
<Header></Header>
<Header :menuAllDate="menuAllDate"></Header>
</el-header>
<el-container class="main-content">
<el-aside width="200px">
@@ -31,7 +30,8 @@ export default {
},
data () {
return {
menuData: []
menuData: [],
menuAllDate: []
}
},
watch: {
@@ -112,8 +112,8 @@ export default {
treeData.forEach(item => {
obj[item.id] = item
})
this.$store.commit('saveMenuData', Object.values(obj))
this.$store.commit('saveMenuData', Object.values(obj))
this.menuAllDate = Object.values(obj)
this.getMenu()
})
}