分享图片优化

This commit is contained in:
kron
2025-06-22 16:15:37 +08:00
parent 1e681b46c7
commit fa219892e0
3 changed files with 45 additions and 44 deletions

View File

@@ -11,7 +11,7 @@ const store = useStore();
const { user } = storeToRefs(store);
onLoad(async (options) => {
const id = options.id || 462;
const id = options.id || 461;
const data = await getPractiseAPI(id);
if (!data.arrows.length) return;
generateCanvasImage("shareCanvas", options.type, user.value, data);
@@ -43,7 +43,7 @@ const saveImage = () => {
<view class="content">
<view :style="{ overflow: 'hidden', borderRadius: '10px' }">
<canvas
:style="{ width: '300px', height: '530px' }"
:style="{ width: '300px', height: '534px' }"
canvas-id="shareCanvas"
></canvas>
</view>