Skip to content

Commit 91bd31e

Browse files
spiritreePanJiaChen
authored andcommitted
refine:refine code
1 parent a8602e7 commit 91bd31e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vendor/Export2Zip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export function export_txt_to_zip(th, jsonData, txtName, zipName) {
1414
txtData += `${tempStr}\r\n`
1515
})
1616
zip.file(`${txt_name}.txt`, txtData)
17-
zip.generateAsync({type:"blob"}).then(function (blob) {
17+
zip.generateAsync({type:"blob"}).then((blob) => {
1818
saveAs(blob, `${zip_name}.zip`)
19-
}, function (err) {
19+
}, (err) => {
2020
alert('导出失败')
2121
})
2222
}

0 commit comments

Comments
 (0)