feat: 侧边动态路由菜单支持参数

This commit is contained in:
郝先瑞
2024-05-24 18:17:01 +08:00
parent 1c4326fdfa
commit c5f7e4b081
4 changed files with 39 additions and 11 deletions

View File

@@ -8,7 +8,13 @@
!item.meta?.alwaysShow
"
>
<AppLink v-if="onlyOneChild.meta" :to="resolvePath(onlyOneChild.path)">
<AppLink
v-if="onlyOneChild.meta"
:to="{
path: resolvePath(onlyOneChild.path),
query: onlyOneChild.meta.params,
}"
>
<el-menu-item
:index="resolvePath(onlyOneChild.path)"
:class="{ 'submenu-title-noDropdown': !isNest }"