增加SSO单点登录

This commit is contained in:
puhui999
2023-04-07 01:45:29 +08:00
parent f16ea74abe
commit 2d019f1bf9
12 changed files with 277 additions and 23 deletions

View File

@ -1,8 +1,8 @@
import axios, {
AxiosError,
AxiosInstance,
AxiosRequestHeaders,
AxiosResponse,
AxiosError,
InternalAxiosRequestConfig
} from 'axios'
@ -230,7 +230,7 @@ const handleAuthorized = () => {
wsCache.clear()
removeToken()
isRelogin.show = false
window.location.href = '/'
window.location.href = '/login?redirect=/sso?' + window.location.href.split('?')[1]
})
}
return Promise.reject(t('sys.api.timeoutMessage'))