pref[Sidebar]: refine key

This commit is contained in:
Pan 2018-09-30 16:08:37 +08:00
parent f7bbc6a9e9
commit 67d2b38e7b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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