@@ -100,7 +100,7 @@ const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid,
key: 'tipInfo',
render: (value, record) => {
if (record.showTip === 1) {
- return value;
+ return <span style={{ color: 'red' }}>{value}</span>;
}
},
@@ -81,13 +81,9 @@ const Gzh: React.FC = () => {
dataIndex: 'loginStatus',
key: 'loginStatus',
render: (status) => {
- const statusMap: Record<number, string> = {
- 0: '离线',
- 1: '在线',
- }
return <span style={{
color: status === 1 ? '#52c41a' : status === 0 ? '#f5222d' : '#999999'
- }}>{statusMap[status]}</span>
+ }}>{status === 1 ? '在线' : '离线'}</span>
{