From cc920a120bc50a0e25c0fba9e6f9f56c3f346e2a Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 23 Jan 2026 18:10:30 +0800
Subject: [PATCH] feat:地图参数

---
 applications/mobile-web-view/src/appComponents/workMap/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/applications/mobile-web-view/src/appComponents/workMap/index.vue b/applications/mobile-web-view/src/appComponents/workMap/index.vue
index 948d848..38bfc99 100644
--- a/applications/mobile-web-view/src/appComponents/workMap/index.vue
+++ b/applications/mobile-web-view/src/appComponents/workMap/index.vue
@@ -291,10 +291,11 @@
 watch(
 	() => mapCurrentDetail,
 	newVal => {
+const newDataMap=JSON.parse(newVal)
 		// 只有 workNavigationShow 为 true 且有经纬度时才添加标记
-		if (workNavigationShow && newVal?.longitude && newVal?.latitude) {
-			addIncidentMarker(newVal)
-			mapCurrentDetailData.value = newVal
+		if (workNavigationShow && newDataMap?.longitude && newDataMap?.latitude) {
+			addIncidentMarker(newDataMap)
+			mapCurrentDetailData.value = newDataMap
 		} else if (!workNavigationShow && incidentMarker) {
 			// 当 workNavigationShow 变为 false 时,移除已添加的标记
 			markersLayer.removeLayer(incidentMarker)

--
Gitblit v1.9.3