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;