Commit ddd10a38 by caoyanzhi

update: 修复layoutbug

parent 1180703f
...@@ -30,7 +30,7 @@ router.beforeEach((to, from, next) => { ...@@ -30,7 +30,7 @@ router.beforeEach((to, from, next) => {
} }
next(); next();
}); });
window.myRouter = router;
export default { export default {
name: 'App', name: 'App',
data() { data() {
......
...@@ -24,12 +24,14 @@ export default { ...@@ -24,12 +24,14 @@ export default {
}, },
computed: { computed: {
getMenuList() { getMenuList() {
return this.menuList.filter(el => { return this.menuList
if (el.hasRight && el.isShow && Array.isArray(el.childList)) { .filter(el => {
el.childList = el.childList.filter(item => item.hasRight && item.isShow); if (el.hasRight && el.isShow && Array.isArray(el.childList)) {
} el.childList = el.childList.filter(item => item.hasRight && item.isShow);
return el.hasRight && el.isShow; }
}); return el.hasRight && el.isShow;
})
.filter(el => Array.isArray(el.childList) && el.childList.length > 0);
} }
}, },
methods: { methods: {
......
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