美文网首页
路由权限addroutes添加路由之后跳转不生效

路由权限addroutes添加路由之后跳转不生效

作者: Gambler_194b | 来源:发表于2022-04-16 12:05 被阅读0次

路有权限控制中,根据用户权限添加路由之后 next() 不生效问题

...
router.addRoutes(accessRoutes)
next({ ...to, replace: true }) // 登录之后跳转页面使用 replace 避免用户回退到 login 页面

相关文章

网友评论

      本文标题:路由权限addroutes添加路由之后跳转不生效

      本文链接:https://www.haomeiwen.com/subject/pzzcertx.html