Browse Source

(*)手机号校验修改

master
peng.peng 1 year ago
parent
commit
58a27840f6
  1. 2
      web/client/src/sections/organization/components/userModal.js

2
web/client/src/sections/organization/components/userModal.js

@ -68,7 +68,7 @@ const UserModal = (props) => {
}} }}
placeholder="请输入用户名(手机号)" placeholder="请输入用户名(手机号)"
rules={[ rules={[
{ required: true, valueType: Number, max: 11 }, { pattern: /^1([358][0-9]|4[579]|66|7[0135678]|9[189])[0-9]{8}$/, message: "请输入正确的手机号" } { required: true, valueType: Number, max: 11 }, { pattern: /^1(3|4|5|6|7|8|9)\d{9}$/, message: "请输入正确的手机号" }
]} ]}
/> />
</ProForm.Group> </ProForm.Group>

Loading…
Cancel
Save