navigateTo
navigateTo 是一个辅助函数,可编程地导航用户。
onBeforeRouteUpdate
onBeforeRouteUpdate 组合式 API 允许在组件中注册路由守卫。