chore(web): 合并工作台菜单图标修复
This commit is contained in:
commit
f023c7d416
1 file changed
+7
-4
@@ -22,14 +22,17 @@ export const useRenderMenuItem = () =>
|
||||
(!onlyOneChild?.children || onlyOneChild?.noShowingChildren) &&
|
||||
!meta?.alwaysShow
|
||||
) {
|
||||
const leafMeta = onlyOneChild?.meta
|
||||
? {
|
||||
...onlyOneChild.meta,
|
||||
icon: onlyOneChild.meta.icon || meta.icon
|
||||
}
|
||||
: meta
|
||||
return (
|
||||
<ElMenuItem
|
||||
index={onlyOneChild ? pathResolve(fullPath, onlyOneChild.path) : fullPath}
|
||||
>
|
||||
{{
|
||||
default: () =>
|
||||
renderMenuTitle(onlyOneChild ? onlyOneChild?.meta : meta, !nested)
|
||||
}}
|
||||
{{ default: () => renderMenuTitle(leafMeta, !nested) }}
|
||||
</ElMenuItem>
|
||||
)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user