|
@@ -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();
|