message-verify 1.0.1-beta.18 → 1.0.1-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,10 +77,13 @@ const CreateMessageVerifyModal = ({ props }) => {
77
77
  'Content-Type': config.headers['Content-Type'],
78
78
  }
79
79
  }).then(res => {
80
+ message.success('验证成功');
80
81
  apiResolve(res);
81
82
  }).catch(err => {
83
+ message.error('验证失败');
82
84
  apiReject(err);
83
85
  }).finally(() => {
86
+ console.log('finally');
84
87
  setVisible(false);
85
88
  });
86
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-verify",
3
- "version": "1.0.1-beta.18",
3
+ "version": "1.0.1-beta.19",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -92,10 +92,13 @@ const CreateMessageVerifyModal = ({ props }: { props: ModalConfig }) => {
92
92
  'Content-Type': config.headers['Content-Type'],
93
93
  }
94
94
  }).then(res => {
95
+ message.success('验证成功');
95
96
  apiResolve(res);
96
97
  }).catch(err => {
98
+ message.error('验证失败');
97
99
  apiReject(err);
98
100
  }).finally(() => {
101
+ console.log('finally');
99
102
  setVisible(false);
100
103
  });
101
104
  }