fix: 菜单设置默认icon
Former-commit-id: b5a562a43a3fb0ceb1355644c3e2be8af75f83bf
This commit is contained in:
@@ -90,9 +90,13 @@ function resolvePath(routePath: string) {
|
||||
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
|
||||
<el-menu-item :index="resolvePath(onlyOneChild.path)">
|
||||
<svg-icon
|
||||
v-if="onlyOneChild.meta && onlyOneChild.meta.icon"
|
||||
:icon-class="onlyOneChild.meta.icon"
|
||||
:icon-class="
|
||||
onlyOneChild.meta && onlyOneChild.meta.icon
|
||||
? onlyOneChild.meta.icon
|
||||
: 'menu'
|
||||
"
|
||||
/>
|
||||
|
||||
<template #title>
|
||||
{{ translateRouteTitleI18n(onlyOneChild.meta.title) }}
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user