Commit cf0a7a1b by 王昆

gsb

parent 5f811832
......@@ -134,12 +134,15 @@ class AuthService extends ServiceBase {
if (!pmenu) {
continue;
}
let childs = pmenu.childs;
if (!childs) {
childs = [];
let childs = pmenu.childs || [];
let childIds = pmenu.childIds || [];
if (childIds.indexOf(item.id) != -1) {
continue;
}
childIds.push(item.id);
childs.push(item);
pmenu.childs = childs;
pmenu.childIds = childIds;
}
return pmenus;
......
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