Commit d2906adf by 姜雷

快速访问中过滤掉不存在的菜单

parent 5f26803c
......@@ -182,11 +182,12 @@ export default {
this.collectList &&
this.collectList.length
) {
let item = this.collectList.map(item => {
let list = this.collectList.map(item => {
let id = item.menuId;
return getFilterMenu(this.routers, id);
});
return item ? formatRouteLink(item) : null;
list = list.filter(item => !!item);
return list ? formatRouteLink(list) : null;
} else {
return null;
}
......
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