This commit is contained in:
2026-07-28 18:05:08 +08:00
parent 24bfe66773
commit 3f9f95b5ef
3 changed files with 22 additions and 20 deletions

View File

@@ -27,11 +27,6 @@ const Store = {
logout() {
if (Store.ws) { Store.ws.close(); Store.ws = null; }
Store.clearAuth();
document.getElementById('login-page').classList.remove('hidden');
document.getElementById('main-page').classList.add('hidden');
Store.currentRoom = null;
Store.rooms = [];
document.getElementById('chat-list-container').innerHTML = '';
document.getElementById('messages-container').innerHTML = '';
location.reload();
},
};