BUG修复

This commit is contained in:
kron
2025-07-17 09:35:30 +08:00
parent 69ad55da41
commit 124f50429d
5 changed files with 21 additions and 24 deletions

View File

@@ -145,10 +145,12 @@ async function onReceiveMessage(messages = []) {
timerSeq.value = 0;
scores.value = [];
totalRounds.value = msg.groupUserStatus.config.maxRounds;
roundResults.value.push({
redArrows: [],
blueArrows: [],
});
// 返回游戏时候会加上,加了就不用再加了
if (!roundResults.value.length)
roundResults.value.push({
redArrows: [],
blueArrows: [],
});
}
if (msg.constructor === MESSAGETYPES.ToSomeoneShoot) {
if (currentShooterId.value !== msg.userId) {