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:
@@ -7,7 +7,28 @@
|
|||||||
<el-menu
|
<el-menu
|
||||||
:collapse="isCollapsed"
|
:collapse="isCollapsed"
|
||||||
:unique-opened="true"
|
: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"
|
:router="true"
|
||||||
class="menu"
|
class="menu"
|
||||||
:text-color="COLOR_FONT_MAIN()"
|
:text-color="COLOR_FONT_MAIN()"
|
||||||
|
|||||||
Reference in New Issue
Block a user