文章目录
- 方法一:使用 watch 函数监听 $route 对象
- 方法二:使用 onBeforeRouteUpdate 导航守卫
- 方法三:监听 router.currentRoute.value.path
- 写在最后(总结)
2025-03-04 11:03:08
2025-03-04 11:03:07
2025-03-04 11:03:07
2025-03-04 11:03:07
2025-03-04 11:03:07
2025-03-04 11:03:06
2025-03-04 11:03:06
2025-03-04 11:03:06
2025-03-04 11:03:06
2025-03-04 11:03:05