@lambo-design/shared 1.0.0-beta.282 → 1.0.0-beta.283

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.282",
3
+ "version": "1.0.0-beta.283",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
package/utils/platform.js CHANGED
@@ -864,8 +864,12 @@ export const isCenterApp = (app) => {
864
864
  export const buildNavListByMenu = (permissionList,appInfo,appType,defaultHideName = '') => {
865
865
  let navList = []
866
866
  if (permissionList && appInfo && appInfo.appId) {
867
+ let hideNames = [];
868
+ if (defaultHideName && typeof defaultHideName === 'string') {
869
+ hideNames = defaultHideName.split(',').map(name => name.trim());
870
+ }
867
871
  let permissions = permissionList.filter(item => item.hasOwnProperty('pid')
868
- && item.pid == '0' && item.appId == appInfo.appId && item.name != defaultHideName)
872
+ && item.pid == '0' && item.appId == appInfo.appId && !hideNames.includes(item.name))
869
873
  for (let per of permissions) {
870
874
  if (appType && appType == 'sc') {
871
875
  let nav = {