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

Fixed that the menu item cannot be automatically selected after the third-level route is refreshed

This commit is contained in:
2023-05-19 19:07:40 +08:00
parent eee560f04b
commit 1bc4644775

View File

@@ -7,7 +7,28 @@
<el-menu
:collapse="isCollapsed"
:unique-opened="true"
:default-active="$route.path"
:default-active="
this.$route.path.indexOf('/', this.$route.path.indexOf('/') + 1) !== -1
? this.$route.path.indexOf(
'/',
this.$route.path.indexOf(
'/',
this.$route.path.indexOf('/') + 1
) + 1
) !== -1
? this.$route.path.substring(
0,
this.$route.path.indexOf(
'/',
this.$route.path.indexOf(
'/',
this.$route.path.indexOf('/') + 1
) + 1
)
)
: this.$route.path
: this.$route.path
"
:router="true"
class="menu"
:text-color="COLOR_FONT_MAIN()"