fix: zip文件压缩
This commit is contained in:
parent
2ab2dd1b1e
commit
e3324ae28a
|
@ -87,7 +87,7 @@ export const zipFile = async (fileList, zipName) => {
|
||||||
result.forEach(res => {
|
result.forEach(res => {
|
||||||
zip.file(res.fileName, res.data)
|
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 })
|
return new File([content], zipName, { type: content.type })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user