Ver Fonte

fix(UserImportForm): 🐞 add nextTick to resetForm

AhJindeg há 1 ano atrás
pai
commit
4c15e6675a
1 ficheiros alterados com 2 adições e 1 exclusões
  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()
 }