feat : 测试sso单点登录之后的重定向路径

This commit is contained in:
clay
2024-04-29 10:03:46 +08:00
parent 8c1d2eeabe
commit 29ea0d5fe4

View File

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