下面的 success fail complete函数 都没执行
uni.canvasToTempFilePath({
x: 0,
y: 0,
canvasId: that.canvasId,
success: function(res) {
console.log("画布生成图片");
console.log(res);
uni.$emit('canvasToTempFilePath', res)
},
fail: function(err) {
console.log("图片失败");
console.log(err);
},
complete: function (complete){
console.log("complete");
console.log(complete);
}
}, this)
1 个回复
DCloud_UNI_Anne
nvue 暂不支持此API
nvue 如何使用 Canvas 请参考 https://github.com/dcloudio/NvueCanvasDemo