fix: 修复cas单点登录

This commit is contained in:
dj
2024-12-15 15:39:58 +08:00
parent 6e839fb255
commit 4fa288ce22
2 changed files with 94 additions and 94 deletions

View File

@@ -234,7 +234,7 @@ router.beforeEach(async (to, form, next) => {
query: query
}))
// window.location.href = `${window.location.origin}/api/auth/cas/login`
next({path: '/api/auth/cas/login'})
next({path: '/login'})
}
} else {
if (to.path === '/login' || to.path === '/cas/login') {

View File

@@ -57,8 +57,8 @@ serveice.interceptors.response.use(response => {
path: path,
query: query
}))
//todo 跳转登录页
window.location.href = `${window.location.origin}/api/auth/cas/login`
window.location = '/login'
// window.location.href = `${window.location.origin}/api/auth/cas/login`
// })
return Promise.reject('会话已过期,请重新登录')
case 402: