renren-security-2.7新版本首次登陆前端报错

提问 3 1797
版本:renren-security 2.7 开发环境:
首次登录报错 [pre] vue-router.esm.js?8c4f:2062 Uncaught (in promise) Error: Redirected when going from "/login" to "/home" via a navigation guard. at createRouterError (vue-router.esm.js?8c4f:2062) at createNavigationRedirectedError (vue-router.esm.js?8c4f:2024) at eval (vue-router.esm.js?8c4f:2239) at eval (index.js?a18c:95) [/pre] img[//cdn.renren.io/5e08f202007281651013006.png] 将 next({ ...to, replace: true }) 改为 next() 后.后台页面刷新白屏,不会自动跳转到当前选中菜单
回帖
  • 更新一下代码,就可以了
    0 回复
  • @Mark 更新后,后台刷新直接白屏,不会自动跳到当前选中的菜单
    0 回复
  • hy3112
    2020-08-04
    @鱼香肉丝没有油 if (from.path === '/login') { next() } else { next({...to, replace: true}) }
    0 回复