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(); + // } }} />