From 6311f8edea168124fcb9e1afdbd2f5fe5edc4d50 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 18 Jul 2025 16:14:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=99=BB=E5=87=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3Promise.all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/store/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {