fix: 修复cas单点登录
This commit is contained in:
@@ -233,8 +233,8 @@ router.beforeEach(async (to, form, next) => {
|
||||
path: path,
|
||||
query: query
|
||||
}))
|
||||
window.location.href = `${window.location.origin}/api/auth/cas/login`
|
||||
// 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') {
|
||||
|
||||
@@ -57,6 +57,7 @@ serveice.interceptors.response.use(response => {
|
||||
path: path,
|
||||
query: query
|
||||
}))
|
||||
//todo 跳转登录页
|
||||
window.location.href = `${window.location.origin}/api/auth/cas/login`
|
||||
// })
|
||||
return Promise.reject('会话已过期,请重新登录')
|
||||
|
||||
Reference in New Issue
Block a user