Commit 5538a7b6 by 张立顺

fix 菜单路径参数判断修改

1 parent e52b0c3e
...@@ -105,66 +105,66 @@ function handleSpecialMenuFilter(menus, merchant) { ...@@ -105,66 +105,66 @@ function handleSpecialMenuFilter(menus, merchant) {
} }
return null return null
} }
const target = findByLabel(filteredMenus, '客户运营') const target = findByLabel(filteredMenus, '客户')
if (target) { if (target) {
target.children = Array.isArray(target.children) ? target.children : [] target.children = Array.isArray(target.children) ? target.children : []
const exists = target.children.some(child => child?.label === '神策-行为分析') // const exists = target.children.some(child => child?.label === '行为分析')
if (!exists) { // if (!exists) {
const scMenu = { const scMenu = {
id: 2981, id: 2981,
label: '神策-行为分析', label: '行为分析',
value: null, value: null,
logo: null, logo: null,
disabled: null, disabled: null,
parentId: 275, parentId: 275,
superParentId: null, superParentId: null,
menuUrl: '^', menuUrl: '^',
functionUrl: null, functionUrl: null,
rootIds: '275-298', rootIds: '275-298',
children: [ children: [
{ {
id: 298101, id: 298101,
label: '用户行为路径', label: '用户行为路径',
value: null, value: null,
logo: null, logo: null,
disabled: null, disabled: null,
parentId: 2735, parentId: 2735,
superParentId: null, superParentId: null,
menuUrl: '/behaviorManage/pathList', menuUrl: '/behaviorManage/pathList',
functionUrl: null, functionUrl: null,
rootIds: '2735-2938', rootIds: '2735-2938',
children: [] children: []
}, },
{ {
id: 298102, id: 298102,
label: 'LTV分析', label: 'LTV分析',
value: null, value: null,
logo: null, logo: null,
disabled: null, disabled: null,
parentId: 2735, parentId: 2735,
superParentId: null, superParentId: null,
menuUrl: '/behaviorManage/LTVList', menuUrl: '/behaviorManage/LTVList',
functionUrl: null, functionUrl: null,
rootIds: '2735-2938', rootIds: '2735-2938',
children: [] children: []
}, },
{ {
id: 298103, id: 298103,
label: '属性分析', label: '属性分析',
value: null, value: null,
logo: null, logo: null,
disabled: null, disabled: null,
parentId: 2735, parentId: 2735,
superParentId: null, superParentId: null,
menuUrl: '/behaviorManage/attributeList', menuUrl: '/behaviorManage/attributeList',
functionUrl: null, functionUrl: null,
rootIds: '2735-2938', rootIds: '2735-2938',
children: [] children: []
} }
] ]
}
target.children.push(scMenu)
} }
target.children.push(scMenu)
// }
} }
return filteredMenus return filteredMenus
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!