关于vue router 的路由守卫

在vue 的路由守卫中 next({path:'/'})和 next('/')是等价的吗

vue-router 版本 v3.0.1

我在项目中使用next({path:'/home'})和 next('/home') 都能跳转到正确的地址

但是在嵌套路由中next({path:'/authManage/widgetManage'})和next('/authManage/widgetManage')
只有next({path:'/authManage/widgetManage'})才能跳转到正确的路由

阅读 1.6k
1 个回答

你是使用什么路由守卫?路由相关代码怎么写的

推荐问题