Commit 40185f27e21b95119271b6bb9e2a82eec47ac2fd

Authored by 若依
Committed by Gitee
2 parents ff695831 ef5adf2e

!23 修复退出登录重定向到登录页,登录后参数丢失 update ruoyi-ui/src/permission.js.

Merge pull request !23 from Elune/N/A
Showing 1 changed file with 1 additions and 1 deletions
ruoyi-ui/src/permission.js
... ... @@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => {
53 53 // 在免登录白名单,直接进入
54 54 next()
55 55 } else {
56   - next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页
  56 + next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
57 57 NProgress.done()
58 58 }
59 59 }
... ...