zet-lib 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zRole.js +2 -2
- package/package.json +1 -1
package/lib/zRole.js
CHANGED
|
@@ -227,10 +227,10 @@ a.childrenMenu = (res, arr) => {
|
|
|
227
227
|
arr.map((item) => {
|
|
228
228
|
let obj = {};
|
|
229
229
|
if(a.isAccess(res.locals.roleId,item.href,"index")) {
|
|
230
|
-
obj = a.
|
|
230
|
+
obj = a.addItemMenu(item);
|
|
231
231
|
if (item.hasOwnProperty("children") && item.children.length) {
|
|
232
232
|
let child = [];
|
|
233
|
-
child.push(a.
|
|
233
|
+
child.push(a.childrenMenu(res, item.children));
|
|
234
234
|
if (child[0]) {
|
|
235
235
|
obj.children = child[0];
|
|
236
236
|
}
|