From cd5080b2e3d84c274f90bee762348be3f89e3c29 Mon Sep 17 00:00:00 2001 From: guonan <guonan201020@163.com> Date: 星期四, 29 五月 2025 18:03:20 +0800 Subject: [PATCH] 修改 --- 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