Unverified Commit 3e95dd21 authored by 若依's avatar 若依 Committed by Gitee

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

Merge pull request !772 from who's hu/pr
parents 491b0f3d 16d8b71e
......@@ -45,7 +45,7 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
next()
} else {
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
NProgress.done()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment