fix: 修改用户显示判断

pull/4/MERGE
xingyuv 2023-03-27 16:03:17 +08:00
parent 693042d2b3
commit 50f5fa1612
1 changed files with 2 additions and 2 deletions

View File

@ -158,13 +158,13 @@ export const formSchema: FormSchema[] = [
label: '用户名称', label: '用户名称',
field: 'username', field: 'username',
component: 'Input', component: 'Input',
dynamicDisabled: ({ values }) => values.id !== undefined dynamicDisabled: ({ values }) => !!values.id
}, },
{ {
label: '用户密码', label: '用户密码',
field: 'password', field: 'password',
component: 'InputPassword', component: 'InputPassword',
ifShow: ({ values }) => values.id === undefined ifShow: ({ values }) => !!!values.id
}, },
{ {
label: '用户性别', label: '用户性别',