|
|
@@ -6,7 +6,10 @@
|
|
6
|
6
|
>
|
|
7
|
7
|
<template v-for="(item, index) in topMenus">
|
|
8
|
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
|
13
|
{{ item.meta.title }}</el-menu-item
|
|
11
|
14
|
>
|
|
12
|
15
|
</template>
|