wx.canvasToTempFilePath报错 ,华为手机p20
- 当前 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);
},



1 回复