海报:完善小程序码获取和海报生成

This commit is contained in:
puhui999
2024-05-13 16:22:55 +08:00
parent 8815972188
commit 004294ae7c
11 changed files with 78 additions and 42 deletions
@@ -101,12 +101,12 @@
// 使用 canvas 生成海报
async function getPoster(params) {
poster.src = '';
poster.shareInfo = props.shareInfo;
// #ifdef APP-PLUS
poster.canvasId = 'canvasId-' + new Date().getTime();
// #endif
const canvas = await useCanvas(poster, vm);
console.log('canvas',canvas);
return canvas;
}