From b1d6e1d6874594a1044821eaf452c30df3f15b55 Mon Sep 17 00:00:00 2001 From: PonyHu <3697820@qq.com> Date: Sun, 1 Sep 2024 17:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E5=9C=A8=E7=BA=BF=E5=AE=A2=E6=9C=8D=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=AA=97=E4=BD=93=E9=A1=B6=E9=83=A8=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E7=9A=84=E9=AB=98=E5=BA=A6=E8=AE=A1=E7=AE=97=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=85=B6=E8=A2=AB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=A1=B6=E9=83=A8=E6=A0=87=E9=A2=98=E6=A0=8F?= =?UTF-8?q?=E9=81=AE=E4=BD=8F=E4=BA=86=E4=B8=80=E5=B0=8F=E9=83=A8=E5=88=86?= =?UTF-8?q?=EF=BC=9B=20=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E5=9C=A8=E7=BA=BF=E5=AE=A2=E6=9C=8D=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=94=B6=E5=88=B0=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=8F=91=E6=9D=A5?= =?UTF-8?q?=E7=9A=84=E6=9C=80=E6=96=B0=E6=B6=88=E6=81=AF=EF=BC=88=E8=A2=AB?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=B8=BA=E9=87=8D=E7=BD=AE=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=BA=86=EF=BC=89=EF=BC=9B=20=E3=80=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96=E3=80=91=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E4=B8=8D=E9=9C=80=E8=A6=81=E5=9C=A8=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E5=BA=95=E9=83=A8=E6=97=B6=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8=EF=BC=8C=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=BF=85=E8=A6=81=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/components/messageList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/chat/components/messageList.vue b/pages/chat/components/messageList.vue index d08fd838..95a19e9e 100644 --- a/pages/chat/components/messageList.vue +++ b/pages/chat/components/messageList.vue @@ -7,7 +7,7 @@ @scrolltoupper="onScrollToUpper" @query="queryList"> @@ -33,7 +33,9 @@ import { reactive, ref } from 'vue'; import KeFuApi from '@/sheep/api/promotion/kefu'; import { isEmpty } from '@/sheep/helper/utils'; - + import sheep from '@/sheep'; + + const sys_navBar = sheep.$platform.navbar; const messageList = ref([]); // 消息列表 const showNewMessageTip = ref(false); // 显示有新消息提示 const backToTopStyle = reactive({ @@ -67,7 +69,7 @@ }; /** 刷新消息列表 */ const refreshMessageList = (message = undefined) => { - if (queryParams.pageNo != 1 && message !== undefined) { + if (message !== undefined) { showNewMessageTip.value = true; // 追加数据 pagingRef.value.addChatRecordData([message], false); @@ -87,8 +89,6 @@ return; } showNewMessageTip.value = false; - // 到底重置消息列表 - refreshMessageList(); }; defineExpose({ getMessageList, refreshMessageList }); -- Gitee