feat: 新增登录重定向之前被拦截的页面
This commit is contained in:
@@ -188,6 +188,7 @@ router.beforeEach(async (to, form, next) => {
|
||||
next()
|
||||
NProgress.done()
|
||||
} else {
|
||||
sessionStorage.setItem('toView', JSON.stringify(to))
|
||||
next({path: '/login'})
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user