没房间了就刷新网页

This commit is contained in:
shuaiplus committed 2025-05-05 15:26:24 +08:00
1 parent 905bde5ba4
commit c8dd1a6298
1 file changed
+1 -3
+1 -3
View File
@@ -454,9 +454,7 @@ function setupMoreBtnMenu() {
switchRoom(0);
} else {
// 没有房间了,回到登录
activeRoomIndex = -1;
document.getElementById('chat-container').style.display = 'none';
document.getElementById('login-container').style.display = '';
location.reload();
}
}
}