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.umd.js CHANGED
@@ -29932,7 +29932,9 @@ const getMenuDatasByGroupID = async (group_id, role_ids) => {
29932
29932
  //缓存所有快捷访问菜单信息
29933
29933
  for (const tempData of tempMenuDatas) {
29934
29934
  let id = tempData.id;
29935
- if (!tempMap[id]) {
29935
+ let isList = tempData.status == "1";
29936
+ // 只缓存启用状态的菜单
29937
+ if (!tempMap[id] && isList) {
29936
29938
  finalMenuDatas.push(tempData);
29937
29939
  tempMap[id] = tempData;
29938
29940
  }
@@ -30100,6 +30102,7 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
30100
30102
  //缓存所有父亲菜单信息
30101
30103
  for (let key in filterObjectMap) {
30102
30104
  let item = filterObjectMap[key];
30105
+ if (!item) continue;
30103
30106
  let parent_id = item.parent_id;
30104
30107
  if (parent_id) {
30105
30108
  parentMaps[parent_id] = true;