Commit 91bd31e1 authored by spiritree's avatar spiritree Committed by 花裤衩

refine:refine code

parent a8602e78
...@@ -14,9 +14,9 @@ export function export_txt_to_zip(th, jsonData, txtName, zipName) { ...@@ -14,9 +14,9 @@ export function export_txt_to_zip(th, jsonData, txtName, zipName) {
txtData += `${tempStr}\r\n` txtData += `${tempStr}\r\n`
}) })
zip.file(`${txt_name}.txt`, txtData) zip.file(`${txt_name}.txt`, txtData)
zip.generateAsync({type:"blob"}).then(function (blob) { zip.generateAsync({type:"blob"}).then((blob) => {
saveAs(blob, `${zip_name}.zip`) saveAs(blob, `${zip_name}.zip`)
}, function (err) { }, (err) => {
alert('导出失败') alert('导出失败')
}) })
} }
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