From 50f5fa1612320580ab16ec952f215ae7256ca365 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Mon, 27 Mar 2023 16:03:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/user.data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: '用户性别',