|
@@ -184,7 +184,7 @@
|
|
|
const base64Img = canvas.toDataURL('image/png')
|
|
|
// 这个images文件目录中创建一个base64数据为imgData的图像,图像名是index序号 + item.codeName实验室名称 + '.gif'
|
|
|
// zip.file((index+1)+'_'+item.codeName+'.gif', base64Img.replace(/^data:image\/(png|jpg);base64,/, ""), { base64: true })
|
|
|
- zip.file((index+1)+'_'+name+'.gif', base64Img.replace(/^data:image\/(png|jpg);base64,/, ""), { base64: true })
|
|
|
+ zip.file((index+1)+'_'+name+'.png', base64Img.replace(/^data:image\/(png|jpg);base64,/, ""), { base64: true })
|
|
|
})
|
|
|
// 把打包内容异步转成blob二进制格式
|
|
|
zip.generateAsync({ type: 'blob' }).then(function(content) {
|