diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index d208a417..30ae1f4a 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -79,8 +79,8 @@ export const useAuthStore = defineStore('auth', () => { async function logout(redirect: boolean = true) { try { - await seeConnectionClose(); - await doLogout(); + // 这两个接口不依赖 不需要await sseClose + await Promise.all([seeConnectionClose(), doLogout()]); } catch (error) { console.error(error); } finally {