细节调整

This commit is contained in:
kron
2025-06-19 21:03:33 +08:00
parent 595a9802e2
commit 35d544003d
14 changed files with 97 additions and 38 deletions

View File

@@ -38,8 +38,7 @@ const onStart = () => {
currentRound.value = 0;
};
async function onReceiveMessage(content) {
const messages = JSON.parse(content).data.updates || [];
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
scores.value.push(msg.target);