优化后端框架
This commit is contained in:
@@ -37,7 +37,7 @@ function toOption(menu: MenuNode): MenuOption | null {
|
||||
.map((item) => toOption(item))
|
||||
.filter((item): item is MenuOption => Boolean(item))
|
||||
|
||||
const key = menu.path || `catalog-${menu.id}`
|
||||
const key = (menu.path && menu.type !== 'CATALOG') ? menu.path : `catalog-${menu.id}`
|
||||
return {
|
||||
key,
|
||||
label: menu.title,
|
||||
|
||||
Reference in New Issue
Block a user