onShareAppMessage的图片路径可以是canva生成的路径吗?
[代码]async onShareAppMessage() {[代码][代码] [代码][代码]// console.log(this.listData.firstMessage);[代码][代码] [代码][代码]var[代码] [代码]_this = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]// var zfimg = "";[代码][代码] [代码][代码]const data = await [代码][代码]new[代码] [代码]Promise([代码][代码]function[代码][代码](resolve) {[代码][代码] [代码][代码]wx.canvasToTempFilePath({[代码][代码] [代码][代码]x: 0,[代码][代码] [代码][代码]y: 0,[代码][代码] [代码][代码]width: _this.rpx * 375,[代码][代码] [代码][代码]height: _this.canvasHeight1,[代码][代码] [代码][代码]destWidth: _this.rpx * 375 * _this.pixelRatio,[代码][代码] [代码][代码]destHeight: _this.canvasHeight1 * _this.pixelRatio,[代码][代码] [代码][代码]canvasId: [代码][代码]"myCanvas1"[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log(res.tempFilePath);[代码][代码] [代码][代码]// zfimg = res.tempFilePath;[代码][代码] [代码][代码]resolve(res.tempFilePath);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]});[代码][代码] [代码][代码]console.log(data); //这里可以打印出图片路径[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: _this.listData.firstMessage,[代码][代码] [代码][代码]path: [代码][代码]"/pages/index/main?id="[代码] [代码]+ _this.listData.id,[代码][代码] [代码][代码]imageUrl: data,[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]console.log([代码][代码]"转发成功"[代码][代码], res);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: res => {[代码][代码] [代码][代码]console.log([代码][代码]"转发失败"[代码][代码], res);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]};[代码][代码] [代码][代码]},[代码][图片] 这个转发图片应该展示我用canvas生成的图片