feat(frontend): Implement multi-file upload with progress and speed

This commit is contained in:
Deroino
2025-11-13 05:47:31 +08:00
parent 0cdd088d97
commit 6b9fdb35d1
3 changed files with 127 additions and 49 deletions
+3 -2
View File
@@ -87,11 +87,12 @@ export const http = {
return request.delete(url, { params })
},
upload(url, formData) {
upload(url, formData, onUploadProgress) {
return request.post(url, formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
},
onUploadProgress
})
}
}