From a4e31e2ef6f580c05d4611d64504d120867a67e3 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Mon, 15 May 2023 07:20:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E4=BD=BF=E7=94=A8=20`u?= =?UTF-8?q?seThrottleFn`=20=E6=9B=BF=E4=BB=A3=20`useDebounceFn`=EF=BC=8C?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E7=82=B9=E5=87=BB=E7=AB=8B=E5=8D=B3?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=EF=BC=8C=E8=BF=9E=E7=BB=AD=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=8D=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 04724284e7f4ec30d54a6f0eaec2770818c650e9 --- src/views/system/user/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 4c51ecb6..e0be2b8a 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -231,7 +231,7 @@ function resetForm() { /** * 表单提交 */ -const handleSubmit = useDebounceFn(() => { +const handleSubmit = useThrottleFn(() => { userFormRef.value.validate((valid: any) => { if (valid) { const userId = formData.id; @@ -255,7 +255,7 @@ const handleSubmit = useDebounceFn(() => { } } }); -}, 1000); +}, 3000); /** * 删除用户