瀏覽代碼

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

YunaiV 2 月之前
父節點
當前提交
b5d107cbb5
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/crm/customer/CustomerImportForm.vue
  2. 1 1
      src/views/iot/device/device/DeviceImportForm.vue

+ 1 - 1
src/views/crm/customer/CustomerImportForm.vue

@@ -132,7 +132,7 @@ const submitFormSuccess = (response: any) => {
 /** 上传错误提示 */
 const submitFormError = (): void => {
   message.error('上传失败,请您重新上传!')
-  formLoading.value = false
+  resetForm()
 }
 
 /** 重置表单 */

+ 1 - 1
src/views/iot/device/device/DeviceImportForm.vue

@@ -115,7 +115,7 @@ const submitFormSuccess = (response: any) => {
 /** 上传错误提示 */
 const submitFormError = (): void => {
   message.error('上传失败,请您重新上传!')
-  formLoading.value = false
+  resetForm()
 }
 
 /** 重置表单 */