Browse Source

fix: 修改用户显示判断

main
xingyuv 2 years ago
parent
commit
50f5fa1612
  1. 4
      src/views/system/user/user.data.ts

4
src/views/system/user/user.data.ts

@ -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: '用户性别',