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