This commit is contained in:
kron
2025-07-23 11:51:53 +08:00
parent be4619ee24
commit 36d92847bd
3 changed files with 8 additions and 1 deletions

View File

@@ -49,7 +49,10 @@
"path": "pages/friend-battle"
},
{
"path": "pages/battle-room"
"path": "pages/battle-room",
"style": {
"disableSwipeBack": true
}
},
{
"path": "pages/ranking"

View File

@@ -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;

View File

@@ -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;