解决方法:导出图片的大小设置为Canvas大小的2到4倍
wx.canvasToTempFilePath({
canvasId: 'myCanvas',
destWidth: canvasW * 4, //屏幕宽
destHeight: canvasH * 4,
fileType: "png", //文件格式,支持png和jpg
success: function (res) {
//这就是生成的文件临时路径
var tempFilePath = res.tempFilePath;
console.log(tempFilePath)
}
})