feat: 资源列表批量下载优化

This commit is contained in:
2025-11-06 17:05:33 +08:00
parent 33177a56ac
commit cb66f9f7e1
15 changed files with 365 additions and 188 deletions
@@ -321,6 +321,12 @@ export const ordersApi = {
}
},
// 获取单个文件的下载URL
getFileDownloadUrl: async (fileId: string) => {
const res = await request(`/api-order/files/file/download/${fileId}`, { method: 'GET' });
return (res as any) || '';
},
// 下载文件 - 通过后端代理(解决跨域问题)
// 优化:改为流式传输,支持大文件下载、断点续传
// 注意:使用 XMLHttpRequest 以支持进度回调和流式传输