From ab608c6abe0617e20c8a34ae585b67a46a9f3ba0 Mon Sep 17 00:00:00 2001 From: Devin <67100711+10wen@users.noreply.github.com> Date: Wed, 27 Dec 2023 20:25:41 +0800 Subject: [PATCH] [fix] new message line disappearance issue --- demo/src/ChatContainer.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/src/ChatContainer.vue b/demo/src/ChatContainer.vue index 8fafc8c0..60503b58 100644 --- a/demo/src/ChatContainer.vue +++ b/demo/src/ChatContainer.vue @@ -172,6 +172,11 @@ export default { firebaseService.updateUserOnlineStatus(this.currentUserId) }, + beforeDestroy() { + this.fetchRooms() + firebaseService.updateUserOnlineStatus(this.currentUserId) + }, + methods: { async addCss() { if (import.meta.env.MODE === 'development') {