diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue index a1561ebc0..9a1e25366 100644 --- a/src/components/ImportForm/src/ImportForm.vue +++ b/src/components/ImportForm/src/ImportForm.vue @@ -178,9 +178,12 @@ const submitForm = async () => { const emits = defineEmits(['success']) const submitFormSuccess = (response: any) => { formLoading.value = true + console.log(response) if(response){ if(response.code == 500){ + uploadRef.value!.clearFiles() message.error('导入失败') + formLoading.value = false return; } else if (response.data.errorCount > 0) { message.confirm('文件中有部分数据导入失败,是否下载失败数据?').then(() => {