@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/shared",
3
- "version": "1.0.0-beta.369",
3
+ "version": "1.0.0-beta.370",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -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 (name && originMenuList) {
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)