Skip to content

Commit

Permalink
feat(download-code): support download zip for not support browsers - …
Browse files Browse the repository at this point in the history
…review
  • Loading branch information
wenmine committed Aug 5, 2024
1 parent 2916a7e commit 50d218f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/fs/fszip.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const writeZip = (filesInfo, { zipHandle, zipName } = {}) => {
zip.file(fileName, fileContent)
}
})
// 把打包的内容一部转成blob二进制格式
// 把打包的内容异步转成blob二进制格式
return zip.generateAsync({ type: 'blob' }).then((content) => {
// content就是blob数据
saveAs(content, `${zipName}.zip`)
Expand Down

0 comments on commit 50d218f

Please sign in to comment.