feat: ✨ 侧边动态路由菜单支持参数
This commit is contained in:
@@ -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 }"
|
||||
|
||||
Reference in New Issue
Block a user