保存空白图片的环境: iphone 8,iOS 13.4.1, 微信版本7.0.12;iphone x,iOS 13.3.1,微信版本7.0.12
代码:
ctx.draw(false, () => {
canvasToTempFilePath({
canvasId: 'share',
}, ctx).then(({ tempFilePath }) => {
console.timeEnd('保存');
wx.hideLoading();
this.setData({
msg: '保存图片至手机,可分享给好友'
})
this.setData({
imageFile: tempFilePath,
isDraw: true
})
if (this.data.loading && tempFilePath) {
this.saveImg();
}
if (!tempFilePath) {
wx.showToast({
title: '合影下载失败',
})
}
}, () => {
this.setData({
msg: '保存图片至手机,可分享给好友'
})
wx.hideLoading();
})
})
请帮忙定位,谢谢
有同时draw多个图吗?
同问,在ios多个版本中都有出现