nieyuge 1 month ago
parent
commit
c8a35b8344
2 changed files with 2 additions and 6 deletions
  1. 1 1
      src/views/account/dialog/config.tsx
  2. 1 5
      src/views/account/list/index.tsx

+ 1 - 1
src/views/account/dialog/config.tsx

@@ -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>;
         }
       },
     }

+ 1 - 5
src/views/account/list/index.tsx

@@ -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>
       }
     },
     {