Yansen 2 years ago
parent
commit
0ed814241f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pages/package/BasicForm.jsx

+ 2
- 1
src/pages/package/BasicForm.jsx View File

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