@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 +1 -1
- package/utils/platform.js +5 -1
package/package.json
CHANGED
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
|
|
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 = {
|