message-verify 1.0.0-beta.0 → 1.0.0-beta.1

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.
@@ -47,7 +47,10 @@ const CreateMessageVerifyModal = ({ props }) => {
47
47
  }, [visible, countdown]);
48
48
  const handleResend = async () => {
49
49
  setCountdown(60);
50
- const res = await Api.reSendCode({ captchaKey, captcha: captchCode });
50
+ const formData = new FormData();
51
+ formData.append('captchaKey', captchaKey);
52
+ formData.append('captcha', captchCode);
53
+ const res = await Api.reSendCode(formData);
51
54
  console.log('handleResend=>res', res);
52
55
  message.success(t('sendSuccess', lang));
53
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-verify",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -64,7 +64,10 @@ const CreateMessageVerifyModal = ({ props }: { props: ModalConfig }) => {
64
64
 
65
65
  const handleResend = async () => {
66
66
  setCountdown(60);
67
- const res = await Api.reSendCode({ captchaKey, captcha: captchCode });
67
+ const formData = new FormData();
68
+ formData.append('captchaKey', captchaKey);
69
+ formData.append('captcha', captchCode);
70
+ const res = await Api.reSendCode(formData);
68
71
  console.log('handleResend=>res', res);
69
72
  message.success(t('sendSuccess', lang));
70
73
  }