自定义组件的uni.canvasToTemplateFile获取不到canvas-id

只需要加上第二个参数this即可:

原文地址:https://www.cnblogs.com/codexlx/p/13424857.html