开发: 撤回代码

This commit is contained in:
zhengw
2023-04-21 14:59:48 +08:00
parent 5f4acf4317
commit 74bca77fd5

View File

@@ -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();
// }
}}
/>
<div className={styles.chatBBox}>{tabContent()}</div>