添加全局返回游戏

This commit is contained in:
kron
2025-07-13 14:57:16 +08:00
parent b6d78d6070
commit fa959c73aa
10 changed files with 109 additions and 10 deletions

View File

@@ -277,6 +277,11 @@ async function onReceiveMessage(messages = []) {
msg.target
);
}
} else {
roundResults.value.push({
redArrows: [],
blueArrows: [],
});
}
}
if (room.value.battleType === 2) {
@@ -373,7 +378,12 @@ onUnmounted(() => {
</script>
<template>
<Container title="对战" :onBack="onBack" :bgType="battleId ? 1 : 0">
<Container
title="对战"
:onBack="onBack"
:bgType="battleId ? 1 : 0"
:showBackToGame="false"
>
<view class="standby-phase" v-if="step === 1">
<Guide>
<view class="battle-guide">