参数或查询的改变并不会触发进入/离开的导航守卫,如何解决:
watch: { $route(to, from) { // 对路由变化作出响应... } }
beforeRouteUpdate(to, from, next) { // react to route changes... // 别忘了 next() }
京公网安备 11010502049817号