From 158ef0f443b9f36f8beb44853ed1f39449c45c1d Mon Sep 17 00:00:00 2001
From: yangyang
Date: 星期五, 21 三月 2025 10:55:37 +0800
Subject: [PATCH] #修改 1. 动态扩展字段优化 2. 物料优化

---
 rsf-admin/src/page/components/TreeSelectInput.jsx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rsf-admin/src/page/components/TreeSelectInput.jsx b/rsf-admin/src/page/components/TreeSelectInput.jsx
index 4140b94..8243ce1 100644
--- a/rsf-admin/src/page/components/TreeSelectInput.jsx
+++ b/rsf-admin/src/page/components/TreeSelectInput.jsx
@@ -14,7 +14,7 @@
     const [proxyVal, setProxyVal] = React.useState('');
 
     const record = useRecordContext()
-    const val = value || record[source];
+    const val = value || record?.[source];
 
     useEffect(() => {
         const http = async (resource) => {

--
Gitblit v1.9.1