From 5890359726438753c681591174de1185e37cf0e7 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Tue, 11 Jun 2024 09:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index c34237694..07ef4a755 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -566,9 +566,15 @@ const buttonBaseClick = (val) => { } // 保存 else if (val == 'save') { - debounce(() => { + let timer = null + if(!timer){ submitForm() - }, 2000)() + timer = setTimeout(()=>{ + if(timer){ + clearTimeout(timer) + } + },2000) + } } // 关闭 else if (val == 'close') {