mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
Fixed that the menu item cannot be automatically selected after the third-level route is refreshed
This commit is contained in:
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user