Browse Source

fix: 用户账号支持4-15位

pull/232/head
cp3hnu 8 months ago
parent
commit
1fd40f927c
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      react-ui/src/pages/System/User/edit.tsx

+ 2
- 3
react-ui/src/pages/System/User/edit.tsx View File

@@ -203,9 +203,8 @@ const UserForm: React.FC<UserFormProps> = (props) => {
required: true,
},
{
pattern: /^[a-zA-Z](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9])?$/,
message:
'只能包含数字,字母,下划线(_),中横线(-),英文句号(.),且必须以字母开头,数字或字母结尾',
pattern: /^[a-zA-Z][a-zA-Z0-9]{3,14}$/,
message: '用户账号长度为4 ~ 15位,且必须以字母开头,只支持字母和数字',
},
]}
/>


Loading…
Cancel
Save