BeforeRouteUpdate

   

Why can I respond to routing changes with watch, but the beforeRouteUpdate guard does not trigger it.

Mar.24,2021

should be used by the wrong party

the document says:
beforeRouteUpdate (2.2 added)
calls
when the component is reused, for example, for a path with dynamic parameters / foo/:id, jumps between / foo/1 and / foo/2,
because the same Foo component will be rendered, so the component instance will be reused. And this hook will be called in this case.
you can access component instances this


excuse me, how did you solve this problem in the end? When I encountered the same problem, I also used the query parameter

Menu