@mu-cabin/opms-permission 0.8.21 → 0.8.23
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/dist/index.cjs +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -148,7 +148,10 @@ function iterateNestedArray(items, callback) {
|
|
148
148
|
return items2.map((item) => {
|
149
149
|
const handledItem = callback(item, parent);
|
150
150
|
if (handledItem && handledItem.children) {
|
151
|
-
handledItem.children = travel(
|
151
|
+
handledItem.children = travel(
|
152
|
+
handledItem.children,
|
153
|
+
handledItem
|
154
|
+
);
|
152
155
|
}
|
153
156
|
return handledItem;
|
154
157
|
}).filter((v) => v);
|
@@ -440,7 +443,7 @@ var Permission = class {
|
|
440
443
|
children: item.children,
|
441
444
|
// TODO: 新接口只返回有权限的节点
|
442
445
|
// disabled: !item.hasPermission,
|
443
|
-
disabled:
|
446
|
+
disabled: false,
|
444
447
|
orgType: item.orgType,
|
445
448
|
orgId: item.orgId
|
446
449
|
};
|
package/dist/index.mjs
CHANGED
@@ -109,7 +109,10 @@ function iterateNestedArray(items, callback) {
|
|
109
109
|
return items2.map((item) => {
|
110
110
|
const handledItem = callback(item, parent);
|
111
111
|
if (handledItem && handledItem.children) {
|
112
|
-
handledItem.children = travel(
|
112
|
+
handledItem.children = travel(
|
113
|
+
handledItem.children,
|
114
|
+
handledItem
|
115
|
+
);
|
113
116
|
}
|
114
117
|
return handledItem;
|
115
118
|
}).filter((v) => v);
|
@@ -401,7 +404,7 @@ var Permission = class {
|
|
401
404
|
children: item.children,
|
402
405
|
// TODO: 新接口只返回有权限的节点
|
403
406
|
// disabled: !item.hasPermission,
|
404
|
-
disabled:
|
407
|
+
disabled: false,
|
405
408
|
orgType: item.orgType,
|
406
409
|
orgId: item.orgId
|
407
410
|
};
|