|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
|
-import { Button, Checkbox, Card, Form, Input } from 'antd';
|
|
2
|
+import { Button, Checkbox, Card, Form, Input, notification } from 'antd';
|
3
|
3
|
import { addPackage, updataPackage } from '@/services/api/package';
|
4
|
4
|
|
5
|
5
|
export default (props) => {
|
|
@@ -17,6 +17,7 @@ export default (props) => {
|
17
|
17
|
func(data, current.id).then(res => {
|
18
|
18
|
setLoading(false);
|
19
|
19
|
onChange(res);
|
|
20
|
+ notification.success({ message: '操作成功' })
|
20
|
21
|
}).catch(() => {
|
21
|
22
|
setLoading(false);
|
22
|
23
|
});
|