feat(frontend): add sso signout action

This commit is contained in:
mac
2026-07-15 15:52:27 +08:00
parent 2154839915
commit 8390c9c677
2 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ import { useAuthStore } from '@/stores/auth'
import { authApi } from '@/api/auth'
import { redirectToSSO } from '@/utils/sso'
const SSO_SIGNOUT_URL = 'https://bo-staging-sso-internal.jfcs-k8s-qa1.qiniu.io/signout'
export function useAuth() {
const authStore = useAuthStore()
@@ -15,7 +17,7 @@ export function useAuth() {
const logout = async () => {
await authApi.logout()
authStore.clearAuth()
redirectToSSO()
window.location.assign(SSO_SIGNOUT_URL)
}
const checkAuth = () => {