浏览代码

fix(UserImportForm): 🐞 add nextTick to resetForm

AhJindeg 1 年之前
父节点
当前提交
4c15e6675a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/system/user/UserImportForm.vue

+ 2 - 1
src/views/system/user/UserImportForm.vue

@@ -115,9 +115,10 @@ const submitFormError = (): void => {
 }
 
 /** 重置表单 */
-const resetForm = () => {
+const resetForm = async (): Promise<void> => {
   // 重置上传状态和文件
   formLoading.value = false
+  await nextTick()
   uploadRef.value?.clearFiles()
 }