fix: zip文件压缩

This commit is contained in:
Xu Zhimeng 2024-01-26 17:50:06 +08:00
parent 2ab2dd1b1e
commit e3324ae28a

View File

@ -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 })
}