细节调整

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

@@ -91,8 +91,7 @@ const startGame = async () => {
step.value = 2;
};
async function onReceiveMessage(content) {
const messages = JSON.parse(content).data.updates || [];
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
if (
msg.roomNumber === roomNumber.value ||
@@ -223,7 +222,6 @@ const onLeaveRoom = () => {
const destroyRoom = async () => {
await destroyRoomAPI(roomNumber.value);
uni.navigateBack();
};
const exitRoom = async () => {