细节调整
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user