From 73c1e0579f73f4913cce92e93d7526bb72774a9a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 30 Jul 2024 13:03:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=80=BB?= =?UTF-8?q?=E7=BA=BF=E9=94=80=E6=AF=81=E6=9D=A1=E4=BB=B6=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=90=8C=E5=90=8D=E4=BA=8B=E4=BB=B6=E8=A2=AB=E6=84=8F?= =?UTF-8?q?=E5=A4=96=E9=94=80=E6=AF=81=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/hooks/web/useEmitt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/hooks/web/useEmitt.ts b/core/core-frontend/src/hooks/web/useEmitt.ts index 26b5d626c9..d77eca58a7 100644 --- a/core/core-frontend/src/hooks/web/useEmitt.ts +++ b/core/core-frontend/src/hooks/web/useEmitt.ts @@ -13,7 +13,7 @@ export const useEmitt = (option?: Option) => { emitter.on(option.name, option.callback) onBeforeUnmount(() => { - emitter.off(option.name) + emitter.off(option.name, option.callback) }) }