在主域绘制shareCanvas时出现了问题
就是按照官方给的例子,开放域:
this.context.fillStyle = 'red';this.context.fillRect(0, 0, 10, 10); |
在主域中:
const sharedCanvas = wx.getOpenDataContext().canvas;this.datastore.ctx.drawImage(sharedCanvas,0, 0); |
结果
不过在开发者工具上是可以预览的。
就是按照官方给的例子,开放域:
this.context.fillStyle = 'red';this.context.fillRect(0, 0, 10, 10); |
在主域中:
const sharedCanvas = wx.getOpenDataContext().canvas;this.datastore.ctx.drawImage(sharedCanvas,0, 0); |
结果
不过在开发者工具上是可以预览的。