开发: 修改群图标

This commit is contained in:
zhengw
2023-04-24 15:12:52 +08:00
parent 0b850f4ef4
commit 00a69d5759
4 changed files with 33 additions and 18 deletions

View File

@@ -242,12 +242,12 @@ const ChatLogs: React.FC = () => {
if (Array.isArray(res.data) && res.data.length) {
setSelectStaff(res.data[0]);
selectStaffRef.current = res.data[0];
// res.data.forEach((element: IStaffsItem) => {
// if (element.user_id == 'yangxb') {
// setSelectStaff(element);
// selectStaffRef.current = element;
// }
// });
res.data.forEach((element: IStaffsItem) => {
if (element.user_id == 'yangxb') {
setSelectStaff(element);
selectStaffRef.current = element;
}
});
setStaffsList(res.data);
setInnerStaffsList(res.data);
getCustFollowsList();