From 4bbbd56a2a83fac7890032f46a2fcb69d934d1b0 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 10 Dec 2023 22:10:08 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=87=BD=E6=95=B0=E5=BC=8F=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E7=BB=84=E4=BB=B6`ReDialog`=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReDialog/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ReDialog/index.ts b/src/components/ReDialog/index.ts index 7604cf2d4..f7c1cca43 100644 --- a/src/components/ReDialog/index.ts +++ b/src/components/ReDialog/index.ts @@ -27,8 +27,11 @@ const addDialog = (options: DialogOptions) => { /** 关闭弹框 */ const closeDialog = (options: DialogOptions, index: number, args?: any) => { - dialogStore.value.splice(index, 1); + dialogStore.value[index].visible = false; options.closeCallBack && options.closeCallBack({ options, index, args }); + useTimeoutFn(() => { + dialogStore.value.splice(index, 1); + }, 200); }; /**