正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -6,7 +6,10 @@ | @@ -6,7 +6,10 @@ | ||
| 6 | > | 6 | > |
| 7 | <template v-for="(item, index) in topMenus"> | 7 | <template v-for="(item, index) in topMenus"> |
| 8 | <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" | 8 | <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" |
| 9 | - ><svg-icon :icon-class="item.meta.icon" /> | 9 | + ><svg-icon |
| 10 | + v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" | ||
| 11 | + :icon-class="item.meta.icon" | ||
| 12 | + /> | ||
| 10 | {{ item.meta.title }}</el-menu-item | 13 | {{ item.meta.title }}</el-menu-item |
| 11 | > | 14 | > |
| 12 | </template> | 15 | </template> |
-
请 注册 或 登录 后发表评论