Skip to content

Commit

Permalink
fix(nav-menu): [nav-menu] resolve the issue of current component not …
Browse files Browse the repository at this point in the history
…being highlighted (#1695)
  • Loading branch information
wuyiping0628 authored Jun 26, 2024
1 parent 6b4801c commit 66f4d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderless/src/nav-menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66f4d21

Please sign in to comment.