修复决金箭bug

This commit is contained in:
kron
2025-07-08 13:23:29 +08:00
parent 06d8244e83
commit 4f56bdb8f0
4 changed files with 16 additions and 7 deletions

View File

@@ -269,6 +269,7 @@ async function onReceiveMessage(messages = []) {
if (msg.constructor === MESSAGETYPES.FinalShoot) {
isFinalShoot.value = true;
showRoundTip.value = true;
tips.value = "准备开始决金箭";
}
if (msg.constructor === MESSAGETYPES.HalfTimeOver) {
startCount.value = false;
@@ -276,6 +277,7 @@ async function onReceiveMessage(messages = []) {
tips.value = "准备下半场";
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.setStorageSync("battle", msg.endStatus);
uni.redirectTo({
url: `/pages/battle-result?battleId=${msg.id}`,
});