From 7955055c17f568517ad1768c930b0c00c0e5f0ca Mon Sep 17 00:00:00 2001 From: Cc Date: Fri, 1 Nov 2024 14:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ldmap/components/comRight/right.vue | 9 +++++++-- stats.html | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ldmap/components/comRight/right.vue b/src/ldmap/components/comRight/right.vue index 25dca76..6612934 100644 --- a/src/ldmap/components/comRight/right.vue +++ b/src/ldmap/components/comRight/right.vue @@ -406,11 +406,16 @@ function addLine(type) { } const isShow = ref(false) function elevationPolygon(){ - - mapdata.getfindSkeleton().then(res=>{ + if(!isShow.value){ + mapdata.getfindSkeleton().then(res=>{ isShow.value = !isShow.value $ldMap.elevationData(isShow.value,res.data); }) +}else{ + isShow.value = !isShow.value + $ldMap.elevationData(isShow.value,[]); +} + } diff --git a/stats.html b/stats.html index c6c0737..44bb90c 100644 --- a/stats.html +++ b/stats.html @@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {