fix bug
This commit is contained in:
@@ -49,7 +49,10 @@
|
||||
"path": "pages/friend-battle"
|
||||
},
|
||||
{
|
||||
"path": "pages/battle-room"
|
||||
"path": "pages/battle-room",
|
||||
"style": {
|
||||
"disableSwipeBack": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/ranking"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user