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
+2 -2
View File
@@ -8,9 +8,9 @@ export const materialApi = {
},
// 上传素材
uploadMaterial: (formData) => {
uploadMaterial: (formData, onUploadProgress) => {
// 使用http.upload方法,它已经配置了正确的Content-Type
return http.upload('/uploadSave', formData)
return http.upload('/uploadSave', formData, onUploadProgress)
},
// 删除素材