pref[Sidebar]: refine key

This commit is contained in:
Pan 2018-10-08 17:25:38 +08:00
parent 1883c305c1
commit 691c526458
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</app-link>
</template>
<el-submenu v-else :index="item.name||item.path">
<el-submenu v-else :index="resolvePath(item.path)">
<template slot="title">
<item v-if="item.meta" :icon="item.meta.icon" :title="item.meta.title" />
</template>

View File

@ -9,7 +9,7 @@
text-color="#bfcbd9"
active-text-color="#409EFF"
>
<sidebar-item v-for="route in routes" :key="route.name" :item="route" :base-path="route.path"/>
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path"/>
</el-menu>
</el-scrollbar>
</template>