- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
发现目前就华为手机p20偶尔出现报错,获取不到数据,无法正常渲染。
canvasToTempImage(red){
setTimeout(() =>{
wx.canvasToTempFilePath({
canvasId: red,
success: (res) =>{
var tempFilePath = res.tempFilePath;
this.setData({
imagePath: tempFilePath,
});
},
fail: (res)=> {
console.log(res);
}
},this);
}, 200);
},
你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
https://developers.weixin.qq.com/s/XVeGhHmP7r80
就华为手机出现偶尔性获取不到数据
wx.canvasToTempFilePath
你好,已经确认是bug请等待后续修复。
draw接口的问题,需要更多的时间来处理。临时解决方案是加大settimeout的时间。