|
|
@ -3,14 +3,14 @@ |
|
|
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"> |
|
|
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"> |
|
|
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path, onlyOneChild.query)"> |
|
|
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path, onlyOneChild.query)"> |
|
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> |
|
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> |
|
|
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="$t('menu.'+onlyOneChild.meta.title)" /> |
|
|
|
|
|
|
|
|
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="getMenuName(onlyOneChild.meta.title)" /> |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
</app-link> |
|
|
</app-link> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body> |
|
|
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body> |
|
|
<template slot="title"> |
|
|
<template slot="title"> |
|
|
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="$t('menu.'+item.meta.title)" /> |
|
|
|
|
|
|
|
|
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="getMenuName(item.meta.title)" /> |
|
|
</template> |
|
|
</template> |
|
|
<sidebar-item |
|
|
<sidebar-item |
|
|
v-for="(child, index) in item.children" |
|
|
v-for="(child, index) in item.children" |
|
|
|