uni.canvasToTempFilePath返回了base64,粘贴到浏览器上,显示不完整,是啥原因呢?我以为是绘制时间问题,还延迟到了一分钟,但也是一样,但是在代码<image>标签中是可以的呀
uni.canvasToTempFilePath({
canvasId: 'myCanvas',
fileType: 'png',
quality: 1, //图片质量
success:async (res)=> {
this.img=res.tempFilePath
this.$emit('draw',res.tempFilePath)
}
},this);

1***@163.com
- 发布:2025-07-28 00:04
- 更新:2025-07-28 09:36
- 阅读:207
