From 334ee90a1a392217c4fc82ba066c40686e069890 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 03 六月 2025 09:41:03 +0800
Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb

---
 src/views/GisView.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/GisView.vue b/src/views/GisView.vue
index 5c8a762..afd104f 100644
--- a/src/views/GisView.vue
+++ b/src/views/GisView.vue
@@ -64,7 +64,6 @@
 EventBus.on("select-geom", ({ geom, flyHeight, shouldShowFill }) => {
   flyToHeight.value = flyHeight;
   ShowFill.value = shouldShowFill;
-  console.log(ShowFill.value, "ShowFill.valueShowFill.value");
   const coordsStr = geom
     .replace("MULTIPOLYGON(((", "") // 鍘绘帀寮�澶�
     .replace(")))", ""); // 鍘绘帀缁撳熬
@@ -141,7 +140,7 @@
       hierarchy: Cesium.Cartesian3.fromDegreesArray(
         geoJson.geometry.coordinates[0][0].flat()
       ),
-      material: ShowFill 
+      material: ShowFill
         ? Cesium.Color.RED.withAlpha(0.3) // 鍗婇�忔槑绾㈣壊濉厖
         : new Cesium.ColorMaterialProperty(Cesium.Color.TRANSPARENT), // 濡傛灉涓嶉渶瑕佸~鍏咃紝鍒欎娇鐢ㄩ�忔槑鏉愯川
       outline: true,
@@ -150,7 +149,7 @@
       clampToGround: true, // 璐村湴鏄剧ず
     },
   });
-  
+
   previousEntities.push(polygonEntity);
 
   // 椋炲悜涓績鐐�
@@ -399,10 +398,12 @@
     });
   });
 }
+
+const validPaths = ["/", "/yhgl"];
 watch(
   () => route.fullPath,
   (val) => {
-    if (val != "/") {
+    if (!validPaths.includes(val)) {
       // clusterLayer.dataSource.show = false
       htmlEntityList.forEach((item) => {
         item.show = false;

--
Gitblit v1.9.3