From 1c582238ec0c5fdcec735d9b63d0194dbc853d04 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Mon, 6 Nov 2023 00:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=8A=E5=A4=A9=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/pages/chat/chat-box.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index de3798c..58e63ad 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -355,8 +355,11 @@ }); }, onScrollToTop() { + // #ifdef MP // 防止滚动条定格在顶部,不能一直往上滚 this.scrollToMsgIdx(this.showMinIdx); + // #endif + // 多展示10条信息 this.showMinIdx = this.showMinIdx > 10 ? this.showMinIdx - 10 : 0; },