zhoulisen 5 년 전
부모
커밋
d77af77ad9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/pages/qrcode/qrcodelist/table/index.jsx

+ 2
- 0
src/pages/qrcode/qrcodelist/table/index.jsx 파일 보기

@@ -65,6 +65,8 @@ const table = props => {
65 65
             title: '性别',
66 66
             dataIndex: 'sex',
67 67
             key: 'sex',
68
+            // eslint-disable-next-line no-nested-ternary
69
+            render: x => <><span>{x === 1 ? '男' : x === 2 ? '女' : '未知'}</span></>,
68 70
         },
69 71
         {
70 72
             title: '归属地',