refine:refine code
This commit is contained in:
parent
a8602e78f0
commit
91bd31e1e2
|
@ -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('导出失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue