Commit 1f9e8c95 by tang

feat: 修改菜单显示问题

parent 325f0f97
......@@ -98,11 +98,13 @@ export default {
computed: {
navList() {
let list = [];
nav.forEach(el => {
if (!el.isHiddenMenu) {
list.push(el);
}
})
this.hiddenNavItem(nav, list)
// nav.forEach(el => {
// if (!el.isHiddenMenu) {
// list.push(el);
// }
// })
console.log('hiddenNavItemhiddenNavItemhiddenNavItem_______',list)
return list;
// return nav;
}
......@@ -144,6 +146,21 @@ export default {
}
});
},
hiddenNavItem(list, result = []) {
list.forEach(
el => {
if (!el.isHiddenMenu) {
result.push(el);
if (el.children && el.children.length > 0) {
el.children = this.hiddenNavItem(el.children)
}
}
}
)
return result;
},
handleWindowClick() {
console.log('handleWindowClick', this.fromNav, this.preActive);
if (!this.fromNav) {
......
......@@ -56,7 +56,6 @@ export const nav = [
{ name: "内设机构" },
],
},
{
id: uuid("gs_nav"),
name: "质检中心/协会/杂志社/标委会/其他",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment