From 4c15e6675aa22dcff9c2c749a10c256ed8e22563 Mon Sep 17 00:00:00 2001 From: AhJindeg Date: Wed, 10 Apr 2024 18:09:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(UserImportForm):=20=F0=9F=90=9E=20add=20nex?= =?UTF-8?q?tTick=20to=20resetForm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/UserImportForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/user/UserImportForm.vue b/src/views/system/user/UserImportForm.vue index 9b82d51f..c8599680 100644 --- a/src/views/system/user/UserImportForm.vue +++ b/src/views/system/user/UserImportForm.vue @@ -115,9 +115,10 @@ const submitFormError = (): void => { } /** 重置表单 */ -const resetForm = () => { +const resetForm = async (): Promise => { // 重置上传状态和文件 formLoading.value = false + await nextTick() uploadRef.value?.clearFiles() }