Ver código fonte

fix: 移除出生日期默认值以修复年龄字段显示单位问题 in src/pages/patient/components/register.form.tsx

sw 6 dias atrás
pai
commit
69e5e5f955
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      src/pages/patient/components/register.form.tsx

+ 5 - 3
src/pages/patient/components/register.form.tsx

@@ -166,9 +166,11 @@ const BasicInfoForm: React.FC<BasicInfoFormProps> = ({
       layout="vertical"
       style={style}
       className="px-2"
-      initialValues={{
-        patient_dob: dayjs(),
-      }}
+      initialValues={
+        {
+          // patient_dob: dayjs(),
+        }
+      }
       onValuesChange={onValuesChange}
     >
       {/** 宠物专用 */}