chore: render standard html tag in sidebar menu

This commit is contained in:
杜郡 2020-01-17 13:55:57 +08:00
parent 17615c4f49
commit 1bb7a4f5b6
1 changed files with 8 additions and 3 deletions

View File

@ -7,9 +7,14 @@
:index="resolvePath(item.path)"
popper-append-to-body
>
<app-link v-if="appLinkShow" :to="resolvePath(onlyOneChild.path)">
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
</app-link>
<template v-if="appLinkShow">
<app-link v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
<item
:icon="onlyOneChild.meta.icon || (item.meta && item.meta.icon)"
:title="onlyOneChild.meta.title"
/>
</app-link>
</template>
<template v-else>
<template slot="title">
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" />