mirror of
https://github.com/veops/cmdb.git
synced 2025-10-10 16:59:19 +08:00
fix(sso login): sso login redirect
This commit is contained in:
@@ -39,9 +39,10 @@ export function getInfo () {
|
||||
}
|
||||
|
||||
export function logout () {
|
||||
console.log('logout........')
|
||||
console.log('logout........', config.useSSO)
|
||||
if (config.useSSO) {
|
||||
window.location.replace(api.Logout)
|
||||
window.location.href = api.Logout
|
||||
return Promise.resolve()
|
||||
} else {
|
||||
return axios({
|
||||
url: api.Logout,
|
||||
|
Reference in New Issue
Block a user