Answer the question
In order to leave comments, you need to log in
How to transfer config to axios?
Good afternoon, how can I implement the transfer of the config parameter to axios?
There is a method that is used in many places.
async putFiles(url, params, config) {
let formData = generateFormData(params);
return execRequest(async () => {
return await AXIOS.put(url, formData, {...config});
})
}
{
headers: {'Content-Type': 'multipart/form-data'},
onUploadProgress: (itemUpload: any) => {
this.fileProgress = itemUpload.loaded
console.log(itemUpload, this.fileProgress)
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question