细节完善
This commit is contained in:
@@ -33,9 +33,11 @@ const enterRoom = debounce(async () => {
|
||||
);
|
||||
if (!alreadyIn) {
|
||||
const result = await joinRoomAPI(roomNumber.value);
|
||||
if (result.full) warnning.value = "房间已满员";
|
||||
showModal.value = true;
|
||||
return;
|
||||
if (result.full) {
|
||||
warnning.value = "房间已满员";
|
||||
showModal.value = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
roomNumber.value = "";
|
||||
showModal.value = false;
|
||||
|
||||
Reference in New Issue
Block a user