Browse Source

fix: ProFormFieldSet validator params error (#9136)

pull/9149/head
iron 5 years ago
committed by GitHub
parent
commit
8ee7e00b40
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/pages/account/settings/components/base.tsx

7
src/pages/account/settings/components/base.tsx

@ -14,12 +14,11 @@ import { queryProvince, queryCity } from '../service';
import styles from './BaseView.less';
const validatorPhone = (rule: any, value: string, callback: (message?: string) => void) => {
const values = value.split('-');
if (!values[0]) {
const validatorPhone = (rule: any, value: string[], callback: (message?: string) => void) => {
if (!value[0]) {
callback('Please input your area code!');
}
if (!values[1]) {
if (!value[1]) {
callback('Please input your phone number!');
}
callback();

Loading…
Cancel
Save