From 8a15d0f86a41967c48bc3478b24414670a5c4068 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Fri, 21 Nov 2025 16:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Map/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/Map/index.js b/components/Map/index.js index e7830f4..04c930f 100644 --- a/components/Map/index.js +++ b/components/Map/index.js @@ -17,8 +17,8 @@ const Map = (props) => { const form = Form.useFormInstance(); const [mapVisible, setMapVisible] = useState(false); - const [currentLongitude, setCurrentLongitude] = useState(form.getFieldValue(longitudeProps) || ""); - const [currentLatitude, setCurrentLatitude] = useState(form.getFieldValue(latitudeProps) || ""); + const [currentLongitude, setCurrentLongitude] = useState(""); + const [currentLatitude, setCurrentLatitude] = useState(""); const handleMapConfirm = (longitudeValue, latitudeValue, extra) => { setCurrentLongitude(longitudeValue); @@ -45,7 +45,11 @@ const Map = (props) => { -