feat: 新增登录重定向之前被拦截的页面

This commit is contained in:
lilinyuan
2024-04-29 09:58:18 +08:00
parent 24dfaac98a
commit 8c1d2eeabe
2 changed files with 18 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ router.beforeEach(async (to, form, next) => {
next()
NProgress.done()
} else {
sessionStorage.setItem('toView', JSON.stringify(to))
next({path: '/login'})
}
} else {