Compare commits
2
Commits
73da0bbd85
...
f023c7d416
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f023c7d416 | ||
|
|
bb03a5ad84 |
@@ -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