Skip to content

Commit

Permalink
refactor: 添加rules
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Sep 6, 2023
1 parent 1056e29 commit ad19f7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function LoginForm(props: { form: FormInstance }): ReactElement {
<Form.Item className={ style.formItem } label="问题验证" required={ true }>
<p className="m-0 leading-[32px]">{ foreignVerificationQuestion }</p>
<p className={ classNames('mb-[6px] leading-[32px]', commonStyle.tips) }>选择答案后请重新发送验证码!</p>
<Form.Item name="answer" required={ true } noStyle={ true }>
<Form.Item name="answer" rules={ [{ required: true, message: '请选择答案', whitespace: false }] } noStyle={ true }>
<Select options={ foreignVerificationOptions } />
</Form.Item>
</Form.Item>
Expand Down

0 comments on commit ad19f7c

Please sign in to comment.