瀏覽代碼

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

sw 6 天之前
父節點
當前提交
69e5e5f955
共有 1 個文件被更改,包括 5 次插入3 次删除
  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}
     >
       {/** 宠物专用 */}