Commit 5538a7b6 by 张立顺

fix 菜单路径参数判断修改

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