在页面中同时使用原生组件和自定义组件绘制 canvas
调用 drawImage 将本地图片绘制到 canvas 中
Page 中
onLoad: function () { const ctx = wx.createCanvasContext('draw', this) ctx.drawImage('/image/complete.png', 50, 50, 100, 100) ctx.draw()} |
Component 中
ready: function () { const ctx = wx.createCanvasContext('com', this) ctx.drawImage('/image/complete.png', 50, 50, 100, 100) ctx.draw()} |
预期效果:(Android 下效果)
体验版真机测试:iOS下
所以? 问题是在 iOS 中 Component 调用 drawImage 失败??
5.25 更新 问题随机复现

你好,问题已复现,我们会尽快进行修复。
同上,tempFilePath可以,本地路径不行