From 4ca47f0d33749f73a538f3cb59b843aaf78dfe28 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Feb 2026 10:02:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20CustomEvent=20?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF=EF=BC=8C=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E9=97=AD=E5=90=88=E6=8B=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/login/QRCodeLogin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/login/QRCodeLogin.tsx b/frontend/src/pages/login/QRCodeLogin.tsx index 1664dd9..a6f555e 100644 --- a/frontend/src/pages/login/QRCodeLogin.tsx +++ b/frontend/src/pages/login/QRCodeLogin.tsx @@ -73,7 +73,7 @@ export default function QRCodeLogin({ visible, onClose }: QRCodeLoginProps) { localStorage.setItem('token', token) localStorage.setItem('i18nextLng', 'zh') // 触发登录成功事件,让 store 更新 - window.dispatchEvent(new CustomEvent('feishu-login-success', { detail: { user, token })) + window.dispatchEvent(new CustomEvent('feishu-login-success', { detail: { user, token } })) Toast.show('登录成功') setTimeout(() => {