|
|
@ -3,14 +3,16 @@ |
|
|
|
<!-- 最后一层菜单 --> |
|
|
|
<template v-if="hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"> |
|
|
|
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> |
|
|
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> |
|
|
|
<!-- 系统首页为最后一层且带图标 --> |
|
|
|
<item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" /> |
|
|
|
<!-- 是二级也是最后一级且带菱形 --> |
|
|
|
<item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/> |
|
|
|
<!-- 其他为最后一层且不带图标 --> |
|
|
|
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> |
|
|
|
</el-menu-item> |
|
|
|
<!-- <el-tooltip class="item" effect="dark" :content="onlyOneChild.meta.title" placement="right"> --> |
|
|
|
<el-menu-item :title="onlyOneChild.meta.title" :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> |
|
|
|
<!-- 系统首页为最后一层且带图标 --> |
|
|
|
<item v-if="onlyOneChild.meta.outerFirst" :isSkip="item.meta && item.meta.roles == 'skip'" :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" /> |
|
|
|
<!-- 是二级也是最后一级且带菱形 --> |
|
|
|
<item v-else-if="item.level=='2'" :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" :punctuation="'rhombus'"/> |
|
|
|
<!-- 其他为最后一层且不带图标 --> |
|
|
|
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> |
|
|
|
</el-menu-item> |
|
|
|
<!-- </el-tooltip> --> |
|
|
|
</app-link> |
|
|
|
</template> |
|
|
|
|
|
|
|