!772 修改未登录访问需要登录的资源,在登录后重定向丢失请求参数问题

Merge pull request !772 from who's hu/pr
This commit is contained in:
若依 2023-08-31 02:17:32 +00:00 committed by Gitee
commit 3e95dd21f2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入 // 在免登录白名单,直接进入
next() next()
} else { } else {
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页 next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
NProgress.done() NProgress.done()
} }
} }