|
@ -3,7 +3,8 @@ |
|
|
<!-- 最后一层菜单 --> |
|
|
<!-- 最后一层菜单 --> |
|
|
<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" /> |
|
|
<!-- 是二级也是最后一级且带菱形 --> |
|
|
<!-- 是二级也是最后一级且带菱形 --> |
|
@ -11,6 +12,7 @@ |
|
|
<!-- 其他为最后一层且不带图标 --> |
|
|
<!-- 其他为最后一层且不带图标 --> |
|
|
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> |
|
|
<item v-else :isSkip="item.meta && item.meta.roles == 'skip'" :title="onlyOneChild.meta.title" /> |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
|
|
|
<!-- </el-tooltip> --> |
|
|
</app-link> |
|
|
</app-link> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|