fix:修改分享图的后缀

This commit is contained in:
2026-05-14 18:22:11 +08:00
parent e70ae0add5
commit d38454453b

View File

@@ -267,17 +267,17 @@ const shareTitle = computed(() => {
/** /**
* 根据对战类型和靶纸尺寸动态返回分享封面图路径,共 4 张图: * 根据对战类型和靶纸尺寸动态返回分享封面图路径,共 4 张图:
* contest_share_20.jpg — 约战/对抗赛 + 20cm 靶 * contest_share_20.png — 约战/对抗赛 + 20cm 靶
* contest_share_40.jpg — 约战/对抗赛 + 40cm 靶 * contest_share_40.png — 约战/对抗赛 + 40cm 靶
* melee_share_20.jpg — 多人乱斗 + 20cm 靶 * melee_share_20.png — 多人乱斗 + 20cm 靶
* melee_share_40.jpg — 多人乱斗 + 40cm 靶 * melee_share_40.png — 多人乱斗 + 40cm 靶
* *
* 当 targetSize 未知时默认取 20cm 图。 * 当 targetSize 未知时默认取 20cm 图。
*/ */
const shareImage = computed(() => { const shareImage = computed(() => {
const type = room.value.battleType === 2 ? 'melee' : 'contest'; const type = room.value.battleType === 2 ? 'melee' : 'contest';
const size = targetSize.value === 40 ? '40' : '20'; const size = targetSize.value === 40 ? '40' : '20';
return `https://static.shelingxingqiu.com/shootmini/static/share/${type}_share_${size}.jpg`; return `https://static.shelingxingqiu.com/shootmini/static/share/${type}_share_${size}.png`;
}); });
onShareAppMessage(() => { onShareAppMessage(() => {