Skip to content
Snippets Groups Projects
Commit 91bd31e1 authored by spiritree's avatar spiritree Committed by 花裤衩
Browse files

refine:refine code

parent a8602e78
No related branches found
No related tags found
No related merge requests found
......@@ -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('导出失败')
})
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment