提交者
Gitee
update ruoyi-ui/src/permission.js.
修复退出登录重定向到登录页,登录后参数丢失。/article?id=6 https://github.com/elunez/eladmin-web/pull/94
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => { | @@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => { | ||
| 53 | // 在免登录白名单,直接进入 | 53 | // 在免登录白名单,直接进入 |
| 54 | next() | 54 | next() |
| 55 | } else { | 55 | } else { |
| 56 | - next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页 | 56 | + next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页 |
| 57 | NProgress.done() | 57 | NProgress.done() |
| 58 | } | 58 | } |
| 59 | } | 59 | } |
-
请 注册 或 登录 后发表评论