Browse Source

feat: 添加账号长度限制5-30

master
AaronWu 1 week ago
parent
commit
0ec2cef5fd
  1. 9
      src/views/system/user/formSchemas.ts

9
src/views/system/user/formSchemas.ts

@ -13,11 +13,18 @@ export const userSchemas: FormSchema<API.CreateUserParams>[] = [
{
field: 'account',
component: 'Input',
componentProps: {
// 限制长度 5-30位
},
label: '账号',
colProps: {
span: 12,
},
rules: [{ required: true }],
rules: [
{ required: true, message: '请输入内容' },
{ min: 5, max: 30, message: '请输入5到30个字符' },
],
},
{
field: 'username',

Loading…
Cancel
Save