weapp-qrcode icon indicating copy to clipboard operation
weapp-qrcode copied to clipboard

如何确定二维码绘制完成可调用exportImage

Open MisterBowie opened this issue 5 years ago • 1 comments

如果二维码没有绘制完成的话,调用qrcode.exportImage会出现 errMsg:"canvasToTempFilePath: fail canvas is empty"

MisterBowie avatar Jul 21 '19 12:07 MisterBowie

你可以试试这个setTimeout的方法:

https://github.com/tomfriwel/weapp-qrcode/issues/6#issuecomment-497582325

tomfriwel avatar Jul 22 '19 01:07 tomfriwel