|
@@ -178,7 +178,8 @@ export function getMenuPath(menuList: Menu.MenuOptions[], path?: string) {
|
|
|
let newMenuList: Menu.MenuOptions[] = JSON.parse(JSON.stringify(menuList))
|
|
|
return newMenuList.map(item => {
|
|
|
if (path) {
|
|
|
- item.path = `${path}/${item.path}`
|
|
|
+ const newPath = path.replace(/none|\/none/g, '')
|
|
|
+ item.path = `${newPath}/${item.path}`
|
|
|
}
|
|
|
item.children?.length && (item.children = getMenuPath(item.children, item.path))
|
|
|
return item
|