Commit ddd10a38 by caoyanzhi

update: 修复layoutbug

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