From 89677f0ccd0402de8a213ccc1808fea94a7184b1 Mon Sep 17 00:00:00 2001 From: blue <825657193@qq.com> Date: Tue, 30 Apr 2024 13:37:31 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20app=E7=82=B9=E5=BC=80=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=90=8E=E6=B6=88=E6=81=AF=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=BB=9A=E5=88=B0=E5=BA=95=E9=83=A8=E7=9A=84bug"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f845c31d --- im-uniapp/pages/chat/chat-box.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index 5a9c741..b031a6c 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -72,7 +72,7 @@ 文件 - + 语音消息 @@ -542,6 +542,8 @@ }, readedMessage() { if(this.unreadCount == 0){ + + console.log("0000000000") return; } let url = "" @@ -673,11 +675,12 @@ this.$store.commit("activeChat", options.chatIdx); // 复位回执消息 this.isReceipt = false; - // 滚动至底部 + }, + onShow() { + // 页面滚到底部 this.scrollToBottom(); }, onUnload() { - this.$store.commit("activeChat", -1); } }