fix(路由): 无法路由到资源

This commit is contained in:
fit2cloud-chenyw 2023-02-21 14:05:36 +08:00
parent ba866423bd
commit d9cfc4dfc5

View File

@ -130,7 +130,7 @@ router.beforeEach(async (to, from, next) => routeBefore(() => {
next()
} else {
// other pages that do not have permission to access are redirected to the login page.
next(`/login?redirect=${to.path}`)
next(`/login?redirect=${to.fullPath}`)
NProgress.done()
}
}