diff --git a/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx b/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx index 0cfc4488..0636ba32 100644 --- a/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx @@ -196,14 +196,14 @@ export default function ContractsPage() { } const reader = response.body.getReader(); - const chunks: Uint8Array[] = []; + const chunks: ArrayBuffer[] = []; let loaded = 0; while (true) { const { done, value } = await reader.read(); if (done) break; - chunks.push(value); + chunks.push(value.buffer as ArrayBuffer); loaded += value.length; if (total > 0) { @@ -213,7 +213,7 @@ export default function ContractsPage() { } // 合并所有 chunks 为 Blob - const blob = new Blob(chunks); + const blob = new Blob(chunks, { type: 'application/zip' }); // 写入文件 const writable = await fileHandle.createWritable();