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

This commit is contained in:
clay
2024-04-29 11:27:56 +08:00
parent eee3c3852e
commit 929228974a
2 changed files with 89 additions and 86 deletions

View File

@@ -189,7 +189,8 @@ router.beforeEach(async (to, form, next) => {
NProgress.done()
} else {
sessionStorage.setItem('toView', JSON.stringify(to))
next({path: '/api/auth/cas/login'})
window.location.href = `${window.location.origin}/api/auth/cas/login`
// next({path: '/api/auth/cas/login'})
}
} else {
if (to.path === '/login'|| to.path === '/cas/login') {