1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

the path repeat bug

This commit is contained in:
lizhiping 2023-11-14 15:56:25 +08:00
parent 0caa975ee2
commit e29b1188bb

View File

@ -7,8 +7,8 @@
</el-menu-item>
</app-link>
</template>
<el-submenu v-else ref="subMenu" :index="resolvePath(item.path)" popper-append-to-body>
<!-- ResolvePath() used here, will cause the path repeat, such as nested menu `/nested/menu1` will wrong stitching for `/nested/menu1/menu1`,fix with `basePath` -->
<el-submenu v-else ref="subMenu" :index="basePath" popper-append-to-body>
<template slot="title">
<item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" />
</template>