Skip to content

Commit

Permalink
fix: optimize rules
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Apr 3, 2023
1 parent d2111c7 commit 2d13866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/sys/department/department.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const searchFormSchema: FormSchema[] = [
label: t('sys.department.name'),
component: 'Input',
colProps: { span: 8 },
rules: [{ min: 1, max: 200 }],
rules: [{ max: 50 }],
},
{
field: 'leader',
Expand Down
6 changes: 3 additions & 3 deletions src/views/sys/user/user.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ export const searchFormSchema: FormSchema[] = [
label: t('sys.login.username'),
component: 'Input',
colProps: { span: 8 },
rules: [{ max: 30 }],
rules: [{ max: 50 }],
},
{
field: 'nickname',
label: t('sys.user.nickname'),
component: 'Input',
colProps: { span: 8 },
rules: [{ max: 30 }],
rules: [{ max: 40 }],
},
{
field: 'roleIds',
Expand Down Expand Up @@ -118,7 +118,7 @@ export const searchFormSchema: FormSchema[] = [
label: t('sys.login.email'),
component: 'Input',
colProps: { span: 8 },
rules: [{ type: 'email' }],
rules: [{ max: 70 }],
},
];

Expand Down

0 comments on commit 2d13866

Please sign in to comment.