Commit b181a9b6 authored by gxkai's avatar gxkai

fix: windows打不开压缩文件

parent 78845bee
...@@ -243,7 +243,7 @@ export const downloadFile = async (folder?: string) => { ...@@ -243,7 +243,7 @@ export const downloadFile = async (folder?: string) => {
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => { await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => {
const path$ = path.replace(/\/([^\/]*)\//, '') const path$ = path.replace(/\/([^\/]*)\//, '')
if (path$.startsWith(folder)) { if (path$.startsWith(folder)) {
zip.file(path$, content) zip.file(path$, content, { binary: true })
} }
}) })
zip.generateAsync({ type: 'blob' }).then(function (blob) { zip.generateAsync({ type: 'blob' }).then(function (blob) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment