开发: 去除默认账号

This commit is contained in:
zhengw
2023-04-24 15:44:49 +08:00
parent 3d98c2cf38
commit 24ab30f1a0

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();