isdata-customer-sdk 0.2.26 → 0.2.28
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.common.js
CHANGED
|
@@ -29914,7 +29914,9 @@ const getMenuDatasByGroupID = async (group_id, role_ids) => {
|
|
|
29914
29914
|
//缓存所有快捷访问菜单信息
|
|
29915
29915
|
for (const tempData of tempMenuDatas) {
|
|
29916
29916
|
let id = tempData.id;
|
|
29917
|
-
|
|
29917
|
+
let isList = tempData.status == "1";
|
|
29918
|
+
// 只缓存启用状态的菜单
|
|
29919
|
+
if (!tempMap[id] && isList) {
|
|
29918
29920
|
finalMenuDatas.push(tempData);
|
|
29919
29921
|
tempMap[id] = tempData;
|
|
29920
29922
|
}
|
|
@@ -30082,6 +30084,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
30082
30084
|
//缓存所有父亲菜单信息
|
|
30083
30085
|
for (let key in filterObjectMap) {
|
|
30084
30086
|
let item = filterObjectMap[key];
|
|
30087
|
+
if (!item) continue;
|
|
30085
30088
|
let parent_id = item.parent_id;
|
|
30086
30089
|
if (parent_id) {
|
|
30087
30090
|
parentMaps[parent_id] = true;
|