FIX 移动端隐藏菜单失效

This commit is contained in:
sc 2022-02-28 09:46:05 +08:00
parent 361922029f
commit 2df913523b
1 changed files with 5 additions and 4 deletions

View File

@ -57,11 +57,12 @@
},
//
filterUrl(map){
map.forEach((item,index) => {
var newMap = []
map && map.forEach(item => {
item.meta = item.meta?item.meta:{};
//
if(item.meta.hidden){
map.splice(index, 1);
return false
}
//http
if(item.meta.type=='iframe'){
@ -71,9 +72,9 @@
if(item.children&&item.children.length > 0){
item.children = this.filterUrl(item.children);
}
newMap.push(item)
})
return map;
return newMap;
}
},
directives: {