1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 15:01:23 +08:00

Fixed submenu route

This commit is contained in:
2023-05-02 03:38:52 +08:00
parent e7313aab46
commit 7853e3b0f6

View File

@@ -52,7 +52,13 @@
<el-menu-item <el-menu-item
v-for="(sub, index) in route.children" v-for="(sub, index) in route.children"
:key="index" :key="index"
:index="sub.path ?? ''" :index="
sub.path
? route.path
? route.path + '/' + sub.path
: ''
: ''
"
> >
<el-icon> <el-icon>
<component :is="sub.meta.icon" /> <component :is="sub.meta.icon" />