From acd5c37f4b6b8786959ed72c59ef029832df6395 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Thu, 21 Aug 2025 11:01:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dios=20h5=E7=99=BD?= =?UTF-8?q?=E5=B1=8F=E7=9A=84bug(=E9=99=8D=E4=BD=8E=E6=A6=82=E7=8E=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/pages/chat/chat-box.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index 9507d4a..5915539 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -676,9 +676,13 @@ export default { if (this.scrollTop < 10) { // 未渲染完成,重试一次 this.holdingScrollBar(); + } else { + // 让页面再滚动一下,解决部分ios手机出现白屏问题 + const delays = [100, 300, 1000]; + delays.forEach(delay => setTimeout(() => this.scrollTop += 5, delay)) } }); - }, 50) + }, 10) }, onShowMore() { if (this.isGroup) {