const formData = new FormData();
fileList.value.forEach(file => {
formData.append('multipartFile', file);
});
formData.append(
'jsonPram',
JSON.stringify({
parentId: formValue.value.catalogue,
setName: formValue.value.name,
setType: formValue.value.type
})
);
一定注意修改请求头 'Content-Type': 'multipart/form-data'
标签:formdata,value,formValue,file,格式,post,formData,append From: https://www.cnblogs.com/demoTimes/p/16881464.html