Cannot read property 'getContext' of undefined?
在canvas设置了type="2d"是可以正常生成海报,但在调用wx.canvasToTempFilePath,错误信息:canvasToTempFilePath: fail canvas is empty
通过资料查询是在调用wx.canvasToTempFilePath时,canvas不用设置了type=“2d”,于是我将type="2d"去除,在生产海报,出现错误信息:Cannot read property ‘getContext’ of undefined,