From e3324ae28a20c514903a9997cb808ab0b7e27e14 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Fri, 26 Jan 2024 17:50:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20zip=E6=96=87=E4=BB=B6=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file.js b/src/utils/file.js index 08cf671..09ef907 100644 --- a/src/utils/file.js +++ b/src/utils/file.js @@ -87,7 +87,7 @@ export const zipFile = async (fileList, zipName) => { result.forEach(res => { zip.file(res.fileName, res.data) }) - const content = await zip.generateAsync({ type: 'blob' }) + const content = await zip.generateAsync({ type: 'blob', compression: 'DEFLATE' }) return new File([content], zipName, { type: content.type }) }