isdata-customer-sdk 0.2.29 → 0.2.30
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
|
@@ -30090,6 +30090,15 @@ const getPlatformBortherMenusByMenuID = async menu_id => {
|
|
|
30090
30090
|
menuDatas.push(item);
|
|
30091
30091
|
}
|
|
30092
30092
|
}
|
|
30093
|
+
//如果没有数据,说明只有一级节点父亲
|
|
30094
|
+
if (menuDatas.length == 0) {
|
|
30095
|
+
for (const key in menuMaps) {
|
|
30096
|
+
let item = menuMaps[key];
|
|
30097
|
+
if (item) {
|
|
30098
|
+
menuDatas.push(item);
|
|
30099
|
+
}
|
|
30100
|
+
}
|
|
30101
|
+
}
|
|
30093
30102
|
// console.log("getPlatformBortherMenusByMenuID",menuDatas);
|
|
30094
30103
|
//获取菜单数据
|
|
30095
30104
|
return menuDatas;
|