@lambo-design/shared 1.0.0-beta.369 → 1.0.0-beta.370
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/package.json +1 -1
- package/utils/menu/index.js +1 -1
package/package.json
CHANGED
package/utils/menu/index.js
CHANGED
|
@@ -512,7 +512,7 @@ export const generateTabDataFromPermissionSingleApp = (originMenuList,name,appLi
|
|
|
512
512
|
|
|
513
513
|
export const generateTabDataFromPermissionSingleAppByPermission = (originMenuList,permissionId,appList,appId) => {
|
|
514
514
|
let menuItem = {};
|
|
515
|
-
if (
|
|
515
|
+
if (permissionId && originMenuList) {
|
|
516
516
|
let originalMenu = originMenuList.find(item => item.permissionId == permissionId && item.type && item.type == '2' && appList.some(app => app.appId === item.appId) && (appId && item.appId == appId || !appId));
|
|
517
517
|
if (originalMenu && originalMenu.name) {
|
|
518
518
|
const rootPermission = getRootPermission(originMenuList, originalMenu)
|