refine:refine code

This commit is contained in:
spiritree 2017-10-12 13:59:01 +08:00 committed by 花裤衩
parent a8602e78f0
commit 91bd31e1e2

View file

@ -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('导出失败')
})
}