修复菜单搜索问题

This commit is contained in:
liaozetao
2023-09-26 18:15:41 +08:00
parent 41096ee91d
commit 816c2c3768

View File

@@ -139,7 +139,9 @@ export default {
parentIds.push(v.id);
});
}
console.log(parentIds);
this.parentMenus = store.getters.parentMenus.filter(v1 => parentIds.filter(v2 => v1.id == v2).length > 0);
this.childMenus = store.getters.childMenus.filter(v1 => parentIds.filter(v2 => v1.parentid == v2).length > 0);
}
}
},