feat: 功能优化

This commit is contained in:
2025-11-16 22:09:41 +08:00
parent 995385f520
commit 3a9e823375
5 changed files with 129 additions and 42 deletions

View File

@@ -39,10 +39,9 @@ export const MaterialService = {
const formData = new FormData()
formData.append('file', file)
formData.append('fileCategory', fileCategory)
// 大文件上传需要更长的超时时间30分钟
return http.post(`${BASE_URL}/upload`, formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
timeout: 30 * 60 * 1000 // 30分钟
})
},