Commit 5538a7b6 by 张立顺

fix 菜单路径参数判断修改

1 parent e52b0c3e
...@@ -105,14 +105,14 @@ function handleSpecialMenuFilter(menus, merchant) { ...@@ -105,14 +105,14 @@ 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,
...@@ -164,7 +164,7 @@ function handleSpecialMenuFilter(menus, merchant) { ...@@ -164,7 +164,7 @@ function handleSpecialMenuFilter(menus, merchant) {
] ]
} }
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!