From cbf1d539c325fab7c6c4ce61353557a320335be2 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Wed, 2 Apr 2025 16:50:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(im=5Fchat=5Finfo):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在页面中添加 onPullDownRefresh 方法,实现下拉刷新功能 - 修改 loadMoreData 方法,支持下拉刷新时的数据加载 --- pages/common/im_chat_info.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/im_chat_info.vue b/pages/common/im_chat_info.vue index 652d250..13fafe5 100644 --- a/pages/common/im_chat_info.vue +++ b/pages/common/im_chat_info.vue @@ -82,6 +82,11 @@ export default { }, onLoad() { }, + //下拉刷新 + async onPullDownRefresh() { + //加载更多(下一页) + await this.loadMoreData() + }, methods: { //初始化 @@ -91,7 +96,6 @@ export default { //加载更多(下一页) loadMoreData() { - return; //不用下拉加载 //判断是否加载 if (!this.isReachedBottom) { this.isReachedBottom = true;//设置为不可请求状态