diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue index 4484aeb11..cdbee338e 100644 --- a/src/components/ImportForm/src/ImportForm.vue +++ b/src/components/ImportForm/src/ImportForm.vue @@ -156,11 +156,11 @@ const submitForm = async () => { } formLoading.value = true const formData = new FormData() - formData.append('888', fileList.value[0].raw) + formData.append(file.value, fileList.value[0].raw) request.post({ url: importUrl, method:'POST', - params:{mode:mode.value, file: '888', updatePart: updatePart.value}, + params:{mode:mode.value, file: file.value, updatePart: updatePart.value}, data:formData, responseType:'blob', headersType:'multipart/form-data' }) .then((response: any) => {