We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0107527 commit a83b55eCopy full SHA for a83b55e
mobile-ui/src/components/form/captcha.tsx
@@ -10,8 +10,10 @@ const FormCaptcha: React.FC<FormItemProps> = (props) => {
10
11
const reloadCaptcha = () => {
12
props.onCaptchaRefresh && props.onCaptchaRefresh().then((res) => {
13
- setCaptchaImg(res.url);
14
- props.onCaptchaChange && props.onCaptchaChange(res.code);
+ if(res) {
+ setCaptchaImg(res.url);
15
+ props.onCaptchaChange && props.onCaptchaChange(res.code);
16
+ }
17
});
18
}
19
mobile-ui/src/components/form/types.tsx
@@ -139,7 +139,7 @@ export interface FormItemProps {
139
code: string;
140
// 验证码图片地址
141
url: string;
142
- }>;
+ } | null>;
143
// 文件上传事件
144
onUploaderUpload?: (filename: string, base64: string) => Promise<{
145
// 文件id
0 commit comments