refine:refine code
This commit is contained in:
parent
a8602e78f0
commit
91bd31e1e2
1 changed files with 2 additions and 2 deletions
4
src/vendor/Export2Zip.js
vendored
4
src/vendor/Export2Zip.js
vendored
|
@ -14,9 +14,9 @@ export function export_txt_to_zip(th, jsonData, txtName, zipName) {
|
|||
txtData += `${tempStr}\r\n`
|
||||
})
|
||||
zip.file(`${txt_name}.txt`, txtData)
|
||||
zip.generateAsync({type:"blob"}).then(function (blob) {
|
||||
zip.generateAsync({type:"blob"}).then((blob) => {
|
||||
saveAs(blob, `${zip_name}.zip`)
|
||||
}, function (err) {
|
||||
}, (err) => {
|
||||
alert('导出失败')
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue