I'm using the Element UI NavMenu
with :router="true"
. It is working fine when I click on menu links (route changes and active menu item changes). The issue I'm having is that when I click on the browser navigation buttons (back
and forward
), the route and component change, but the NavMenu
active tab does not change.
Is there an easy way to make sure the NavMenu
and current route stay in sync with each other when using the browser navigation buttons? I'm using vue-router
with mode: 'history'
. I would have thought that this would be handled automatically.