Yansen 2 years ago
parent
commit
17deec9003
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/pages/home/components/Banner.jsx

+ 4
- 4
src/pages/home/components/Banner.jsx View File

@@ -16,22 +16,22 @@ export default (props) => {
16 16
     <Row gutter={24}>
17 17
       <Col span={6}>
18 18
         <Card>
19
-          <Statistic prefix={<UserOutlined />} title="注册用户" value={sum.user_num} />
19
+          <Statistic prefix={<UserOutlined />} title="注册用户" value={sum.user_num || 0} />
20 20
         </Card>
21 21
       </Col>
22 22
       <Col span={6}>
23 23
         <Card>
24
-          <Statistic prefix={<ShrinkOutlined />} title="待处理问题单数" value={sum.published_num} />
24
+          <Statistic prefix={<ShrinkOutlined />} title="待处理问题单数" value={sum.published_num || 0} />
25 25
         </Card>
26 26
       </Col>
27 27
       <Col span={6}>
28 28
         <Card>
29
-          <Statistic prefix={<DoubleRightOutlined />} title="处理中问题单数" value={sum.assigned_num} />
29
+          <Statistic prefix={<DoubleRightOutlined />} title="处理中问题单数" value={sum.assigned_num || 0} />
30 30
         </Card>
31 31
       </Col>
32 32
       <Col span={6}>
33 33
         <Card>
34
-          <Statistic prefix={<CarryOutOutlined />} title="已办结问题单数" value={sum.unassigned_num} />
34
+          <Statistic prefix={<CarryOutOutlined />} title="已办结问题单数" value={sum.end_num || 0} />
35 35
         </Card>
36 36
       </Col>
37 37
     </Row>