From 36d92847bd1d5c56d6eeea8c66eb43a5feed1e94 Mon Sep 17 00:00:00 2001 From: kron Date: Wed, 23 Jul 2025 11:51:53 +0800 Subject: [PATCH] fix bug --- src/pages.json | 5 ++++- src/pages/battle-room.vue | 2 ++ src/pages/team-match.vue | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages.json b/src/pages.json index da31f31..c74c55f 100644 --- a/src/pages.json +++ b/src/pages.json @@ -49,7 +49,10 @@ "path": "pages/friend-battle" }, { - "path": "pages/battle-room" + "path": "pages/battle-room", + "style": { + "disableSwipeBack": true + } }, { "path": "pages/ranking" diff --git a/src/pages/battle-room.vue b/src/pages/battle-room.vue index e3d8fc6..7e87586 100644 --- a/src/pages/battle-room.vue +++ b/src/pages/battle-room.vue @@ -101,6 +101,8 @@ function recoverData(battleInfo) { redTeam.value = battleInfo.redTeam; blueTeam.value = battleInfo.blueTeam; if (battleInfo.status !== 0) { + bluePoints.value = 0; + redPoints.value = 0; currentRound.value = battleInfo.currentRound; totalRounds.value = battleInfo.maxRound; roundResults.value = battleInfo.roundResults; diff --git a/src/pages/team-match.vue b/src/pages/team-match.vue index d15fdc9..16b7888 100644 --- a/src/pages/team-match.vue +++ b/src/pages/team-match.vue @@ -60,6 +60,8 @@ function recoverData(battleInfo) { } } else { start.value = true; + bluePoints.value = 0; + redPoints.value = 0; currentRound.value = battleInfo.currentRound; totalRounds.value = battleInfo.maxRound; roundResults.value = battleInfo.roundResults;