fix(nav-menu): [nav-menu] resolve the issue of current component not being highlighted (#1695)

This commit is contained in:
wuyiping0628 2024-06-25 20:23:36 -07:00 committed by GitHub
parent 6b4801cf2e
commit 66f4d2153d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ export const mounted =
if (router) {
state.afterEach = () => {
api.setActiveMenu(api.getSelectedIndex(route.path))
api.setActiveMenu(api.getSelectedIndex(router.currentRoute.path))
}
router.afterEach(state.afterEach)