头条小游戏

项目发布成微信小游戏,运行在头条开发工具上,报如下错误:

Uncaught DOMException: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0.

是什么原因呢?

自己来结贴!
子域项目中不能存在有Label的string为空。