From c4dad6c041b11ad9c542afee7a730a87bae79f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 12 Oct 2023 17:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImportForm/src/ImportForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {