魏超 5 년 전
부모
커밋
4794f33cbf
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      src/pages/building/list/index.jsx

+ 3
- 2
src/pages/building/list/index.jsx 파일 보기

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Pagination, Alert, notification, Modal } from 'antd';
2
+import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, message, Col, Pagination, Alert, notification, Modal } from 'antd';
3 3
 import moment from 'moment';
4 4
 import request from '../../../utils/request';
5 5
 import apis from '../../../services/apis';
@@ -59,7 +59,8 @@ function CartBody(props) {
59 59
           openNotificationWithIcon('success', '操作成功')
60 60
           props.onSuccess()
61 61
         }).catch(err => {
62
-          openNotificationWithIcon('error', err.message)
62
+          // openNotificationWithIcon('error', err.message)
63
+          message.info(err.msg || err.message)
63 64
         })
64 65
 
65 66
         modal.destroy();