Commit 4f157040 authored by huangjie's avatar huangjie

*

parent e8da09f6
...@@ -36,9 +36,11 @@ ...@@ -36,9 +36,11 @@
> >
<div class="side-container"> <div class="side-container">
<div class="side-title"> <div class="side-title">
<app-link v-if="onlyOneChild.meta || item.meta" :to="resolvePath(onlyOneChild.path || item.path)"> <!--<app-link v-if="onlyOneChild.meta || item.meta" :to="resolvePath(onlyOneChild.path || item.path)">-->
<app-link :to="resolvePath(onlyOneChild.path || item.path)">
{{ onlyOneChild.meta.title || item.meta.title }} {{ onlyOneChild.meta.title || item.meta.title }}
</app-link> </app-link>
</div> </div>
</div> </div>
<item v-if="onlyOneChild.meta" slot="reference" :icon="sideIcon(item, onlyOneChild)" /> <item v-if="onlyOneChild.meta" slot="reference" :icon="sideIcon(item, onlyOneChild)" />
...@@ -118,7 +120,7 @@ export default { ...@@ -118,7 +120,7 @@ export default {
let tempPath = '' let tempPath = ''
if (onlyOneChild.path) { if (onlyOneChild.path) {
tempPath = this.resolvePath(onlyOneChild.path) tempPath = this.resolvePath(onlyOneChild.path)
if (this.activeMenu === tempPath&&onlyOneChild.meta.icon!='#') { if (this.activeMenu === tempPath&&onlyOneChild.meta.icon!='#') {
icon = onlyOneChild.meta.icon+'s' icon = onlyOneChild.meta.icon+'s'
} }
...@@ -137,7 +139,7 @@ export default { ...@@ -137,7 +139,7 @@ export default {
icon = item.meta.icon+'s' icon = item.meta.icon+'s'
} }
} }
return icon return icon
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment