diff --git a/src/views/system/user/user.data.ts b/src/views/system/user/user.data.ts index f24d77f1..e30e9a40 100644 --- a/src/views/system/user/user.data.ts +++ b/src/views/system/user/user.data.ts @@ -158,13 +158,13 @@ export const formSchema: FormSchema[] = [ label: '用户名称', field: 'username', component: 'Input', - dynamicDisabled: ({ values }) => values.id !== undefined + dynamicDisabled: ({ values }) => !!values.id }, { label: '用户密码', field: 'password', component: 'InputPassword', - ifShow: ({ values }) => values.id === undefined + ifShow: ({ values }) => !!!values.id }, { label: '用户性别',