|
@ -3,14 +3,16 @@ |
|
|
<!-- 最后一层菜单 --> |
|
|
<!-- 最后一层菜单 --> |
|
|
<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)"> |
|
|
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)"> |
|
|
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}"> |
|
|
<!-- <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-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-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> |
|
|
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> |
|
|
|
|
|
</el-menu-item> |
|
|
|
|
|
<!-- </el-tooltip> --> |
|
|
</app-link> |
|
|
</app-link> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|