Browse Source

(*) 用户名限制修改

master
liujiangyong 10 months ago
parent
commit
76825ea3b8
  1. 4
      web/client/src/sections/organization/components/userModal.js

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

@ -49,10 +49,10 @@ const UserModal = (props) => {
label="用户名" label="用户名"
required required
fieldProps={{ fieldProps={{
maxLength: 11, maxLength: 50,
}} }}
getValueFromEvent={(event) => { getValueFromEvent={(event) => {
return event.target.value.replace(/\D/g, '') return event.target.value.replace(/\W/g, '')
}} }}
placeholder="请输入用户名" placeholder="请输入用户名"
rules={[ rules={[

Loading…
Cancel
Save