Browse Source

文件上传修改

master
陈薪名 11 months ago
parent
commit
c4dad6c041
  1. 4
      src/components/ImportForm/src/ImportForm.vue

4
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) => {

Loading…
Cancel
Save