From 5c2b139f43afffbca650b2378385d69c7cfc0879 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 14 四月 2025 15:15:08 +0800
Subject: [PATCH] 代码模块优化
---
rsf-admin/src/page/basicInfo/matnr/MatnrEdit.jsx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/matnr/MatnrEdit.jsx b/rsf-admin/src/page/basicInfo/matnr/MatnrEdit.jsx
index 04ff032..2d14bcd 100644
--- a/rsf-admin/src/page/basicInfo/matnr/MatnrEdit.jsx
+++ b/rsf-admin/src/page/basicInfo/matnr/MatnrEdit.jsx
@@ -369,7 +369,9 @@
const { ...parmas } = props;
const form = useFormContext();
const field = `extendFields.${parmas.source}`;
- const value = form.getValues(field);
+
+ const value = form.getValues(field) || form.formState.defaultValues?.extendFields?.[parmas.source];
+
value && form.setValue(parmas.source, value);
return (
<TextInput
--
Gitblit v1.9.1