From d9c9319d2473ba60d84c7a6a3007f1138b346afe Mon Sep 17 00:00:00 2001 From: kron Date: Thu, 21 Aug 2025 09:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditOption.vue | 2 +- src/components/TestDistance.vue | 4 ++-- src/pages/rank-list.vue | 15 ++++++++++++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/EditOption.vue b/src/components/EditOption.vue index a835b20..8a5829c 100644 --- a/src/components/EditOption.vue +++ b/src/components/EditOption.vue @@ -150,7 +150,7 @@ onMounted(async () => { }} {{ selectedIndex !== -1 && secondSelectIndex !== -1 - ? `${selectedIndex + 1}组/${groupArrows[secondSelectIndex]}箭` + ? `${selectedIndex}组/${groupArrows[secondSelectIndex]}箭` : itemTexts[itemIndex] }} diff --git a/src/components/TestDistance.vue b/src/components/TestDistance.vue index ae1f8f9..6bd55b9 100644 --- a/src/components/TestDistance.vue +++ b/src/components/TestDistance.vue @@ -62,8 +62,8 @@ onUnmounted(() => { }" > - 请预先射几箭测试 - 请确保射箭距离有5米 + 请确保站距达到5米 + 低于5米的射箭无效 diff --git a/src/pages/rank-list.vue b/src/pages/rank-list.vue index dcfca60..d483c0d 100644 --- a/src/pages/rank-list.vue +++ b/src/pages/rank-list.vue @@ -38,6 +38,15 @@ const handleSelect = (index) => { } return false; }); + if (!myData.value.userId) { + myData.value = { + userId: user.value.id, + TotalGames: 0, + totalScore: 0, + mvpCount: 0, + TenRings: 0, + }; + } } }; @@ -178,19 +187,19 @@ const subTitles = ["排位赛积分", "MVP次数", "十环次数"]; {{ myData.totalScore }}{{ myData.totalScore || 0 }} {{ myData.mvpCount }}{{ myData.mvpCount || 0 }} {{ myData.TenRings }}{{ myData.TenRings || 0 }}