update;优化比赛服

This commit is contained in:
2026-07-09 15:48:28 +08:00
parent bf6b87b59c
commit 33187e0cc3
2 changed files with 29 additions and 4 deletions
+8 -1
View File
@@ -1103,8 +1103,15 @@ async function runBattleEndTask(task, runId) {
url: `/pages/friend-battle-result?battleId=${battleId.value}`,
});
} else if (matchStatus.value === 4) {
const roomNumber = battleInfo.roomId || store.game.roomNumber || store.game.roomID;
setTimeout(() => {
uni.navigateBack();
if (roomNumber) {
uni.redirectTo({
url: `/pages/battle-room?roomNumber=${encodeURIComponent(roomNumber)}&fromResult=1`,
});
} else {
uni.navigateBack();
}
}, BATTLE_CANCEL_RETURN_DELAY);
}
}