射箭记录完善
This commit is contained in:
@@ -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
|
||||
>积分
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user