@mu-cabin/opms-permission 0.9.2 → 0.9.3
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 +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -162,10 +162,11 @@ var Storage = class {
|
|
162
162
|
var storage = new Storage();
|
163
163
|
|
164
164
|
// src/utils/dataHandler.ts
|
165
|
-
|
165
|
+
var getCompletePath = (item) => {
|
166
166
|
const menuUrl = item.openIndicator === "INNER_COMPONENT" ? item.componentPath : item.defaultUrl;
|
167
|
-
|
168
|
-
|
167
|
+
const path = item.prefix && item.openIndicator === "INNER_COMPONENT" ? `${item.prefix}${menuUrl}` : menuUrl ?? "";
|
168
|
+
return path;
|
169
|
+
};
|
169
170
|
function getMenuName(item) {
|
170
171
|
return item.resourceType !== "FOLDER" ? item.resourceName || "" : (item.showName ?? item.resourceName) || "";
|
171
172
|
}
|
package/dist/index.mjs
CHANGED
@@ -113,10 +113,11 @@ var Storage = class {
|
|
113
113
|
var storage = new Storage();
|
114
114
|
|
115
115
|
// src/utils/dataHandler.ts
|
116
|
-
|
116
|
+
var getCompletePath = (item) => {
|
117
117
|
const menuUrl = item.openIndicator === "INNER_COMPONENT" ? item.componentPath : item.defaultUrl;
|
118
|
-
|
119
|
-
|
118
|
+
const path = item.prefix && item.openIndicator === "INNER_COMPONENT" ? `${item.prefix}${menuUrl}` : menuUrl ?? "";
|
119
|
+
return path;
|
120
|
+
};
|
120
121
|
function getMenuName(item) {
|
121
122
|
return item.resourceType !== "FOLDER" ? item.resourceName || "" : (item.showName ?? item.resourceName) || "";
|
122
123
|
}
|