message-verify 1.0.1-beta.71 → 1.0.1-beta.72
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.
@@ -74,7 +74,7 @@ const CreateMessageVerifyModal = ({ props }) => {
|
|
74
74
|
formData.append('captchaKey', captchaKey);
|
75
75
|
formData.append('captcha', captchCode);
|
76
76
|
// 重新发送验证码
|
77
|
-
const res = await axios.post(sendApi, formData);
|
77
|
+
const res = await axios.post(sendApi, formData) || {};
|
78
78
|
const { code, detail } = res.data?.status || {};
|
79
79
|
if (code !== 0) {
|
80
80
|
message.error(detail || t('sendFailed', lang));
|
package/package.json
CHANGED
@@ -78,7 +78,7 @@ const CreateMessageVerifyModal = ({ props }: { props: VerifyModalConfig }) => {
|
|
78
78
|
formData.append('captchaKey', captchaKey);
|
79
79
|
formData.append('captcha', captchCode);
|
80
80
|
// 重新发送验证码
|
81
|
-
const res = await axios.post(sendApi, formData);
|
81
|
+
const res = await axios.post(sendApi, formData) || {};
|
82
82
|
const { code, detail } = res.data?.status || {};
|
83
83
|
if (code !== 0) {
|
84
84
|
message.error(detail || t('sendFailed', lang));
|