排名显示错误修复

This commit is contained in:
kron
2025-11-10 14:49:35 +08:00
parent 7e1a3be510
commit cd8814189f
5 changed files with 23 additions and 18 deletions

View File

@@ -124,7 +124,7 @@ onBeforeUnmount(() => {
<view class="target">
<view v-if="stop" class="stop-sign">中场休息</view>
<view
v-if="latestOne && user.id === latestOne.playerId"
v-if="latestOne && latestOne.ring && user.id === latestOne.playerId"
class="e-value fade-in-out"
:style="{
left: calcRealX(latestOne.ring ? latestOne.x : 0, 20),
@@ -143,7 +143,11 @@ onBeforeUnmount(() => {
>{{ latestOne.ring || "未上靶" }}<text v-if="latestOne.ring"></text>
</view>
<view
v-if="bluelatestOne && user.id === bluelatestOne.playerId"
v-if="
bluelatestOne &&
bluelatestOne.ring &&
user.id === bluelatestOne.playerId
"
class="e-value fade-in-out"
:style="{
left: calcRealX(bluelatestOne.ring ? bluelatestOne.x : 0, 20),