From e9b055acd206304c7c46c2c5304733ba8f8bff52 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期一, 19 五月 2025 14:59:39 +0800 Subject: [PATCH] change --- src/components/menu/Location.vue | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/menu/Location.vue b/src/components/menu/Location.vue index e6e9048..feae123 100644 --- a/src/components/menu/Location.vue +++ b/src/components/menu/Location.vue @@ -45,8 +45,6 @@ onBeforeUnmount(() => { if (route.path !== '/yhgl') { - console.log('zzzzzzzzzzzzzzzzzzzzzzzzzz'); - handleCleanup(); } }); @@ -119,8 +117,7 @@ item.position?.includes(areaName) ); - if (JSON.stringify(districtList.value) !== JSON.stringify(filteredData)) { // 妫�鏌ユ槸鍚︾湡鐨勯渶瑕佹洿鏂� - districtList.value = filteredData; + if (JSON.stringify(districtList.value) !== JSON.stringify(filteredData)) { await initializeDevicePoints(); } }; @@ -137,8 +134,6 @@ let isInitialized = false; watch(() => simStore.DangerShowSwitch, async (newValue, oldValue) => { - console.log('褰撳墠鐘舵�侊細', newValue); - if (newValue) { if (!isInitialized) { await initializeDevicePoints(); @@ -146,7 +141,7 @@ } } else { handleCleanup(); - isInitialized = false; // 鎴栬�呬繚鎸佷负 true锛屽彇鍐充簬浣犵殑闇�姹� + isInitialized = false; } }); // 鐩戝惉 simStore.DangerPoint 鍙樺寲 -- Gitblit v1.9.3