射箭记录完善

This commit is contained in:
kron
2025-06-14 22:45:07 +08:00
parent aacfc17a01
commit 9a051aca20
6 changed files with 135 additions and 76 deletions

View File

@@ -25,7 +25,7 @@ watch(
() => props.data,
(value) => {
const mine = value.players.find((p) => p.playerId === user.value.id);
if (mine.arrowHistory) {
if (mine && mine.arrowHistory) {
scores.value = mine.arrowHistory;
}
},
@@ -47,7 +47,7 @@ watch(
<image v-if="index === 1" src="../static/champ2.png" mode="widthFix" />
<image v-if="index === 2" src="../static/champ3.png" mode="widthFix" />
<view v-if="index > 2" class="rank-view">{{ index + 1 }}</view>
<Avatar src="../static/avatar.png" :size="24" />
<Avatar :src="player.avatar" :size="24" />
<text
>积分
{{