فهرست منبع

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()
 }
 
 /** 重置表单 */