Browse Source

fix: 修复上传文件后后端报错导致无法再次提交的bug

朱桂志 3 tháng trước cách đây
mục cha
commit
9e4e565226
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/system/user/UserImportForm.vue

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

@@ -87,7 +87,7 @@ const emits = defineEmits(['success'])
 const submitFormSuccess = (response: any) => {
   if (response.code !== 0) {
     message.error(response.msg)
-    formLoading.value = false
+    resetForm()
     return
   }
   // 拼接提示语