Skip to content

Commit

Permalink
fix: login弹窗
Browse files Browse the repository at this point in the history
  • Loading branch information
79E committed May 25, 2023
2 parents 8ce11d4 + aa13f44 commit 92d51e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LoginModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function LoginCard(props: {
]}
onGetCaptcha={async () => {
const account = props.form.getFieldValue('account')
if (!account || !/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(account)) {
if (!account || !/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(account)) {
props.form.setFields([
{
name: 'account',
Expand Down

0 comments on commit 92d51e7

Please sign in to comment.