From 74bca77fd5db26b54d06620b585e3b88af0a9482 Mon Sep 17 00:00:00 2001 From: zhengw <247276359@qq.com> Date: Fri, 21 Apr 2023 14:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=20=E6=92=A4=E5=9B=9E?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ChatLogs/index.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pages/ChatLogs/index.tsx b/src/pages/ChatLogs/index.tsx index 92d1cd7..157307a 100644 --- a/src/pages/ChatLogs/index.tsx +++ b/src/pages/ChatLogs/index.tsx @@ -242,8 +242,8 @@ const ChatLogs: React.FC = () => { // }); setStaffsList(res.data); setInnerStaffsList(res.data); - // getCustFollowsList(); - // getGroupList(); + getCustFollowsList(); + getGroupList(); } } }); @@ -566,11 +566,11 @@ const ChatLogs: React.FC = () => { setSelectStaff({ ...item }); selectStaffRef.current = { ...item }; setFlolowsBox(false); - if (tabKey == '1') { - getCustFollowsList(); - } else if (tabKey == '2') { - getGroupList(); - } + // if (tabKey == '1') { + getCustFollowsList(); + // } else if (tabKey == '2') { + getGroupList(); + // } }} style={{ background: selectStaff?.user_id == item.user_id ? '#bae0ff' : '' }} > @@ -654,11 +654,11 @@ const ChatLogs: React.FC = () => { tabBarGutter={12} onChange={(val) => { setTabKey(val); - if (val == '1') { - getCustFollowsList(); - } else if (val == '2') { - getGroupList(); - } + // if (val == '1') { + // getCustFollowsList(); + // } else if (val == '2') { + // getGroupList(); + // } }} />
{tabContent()}