From 2280e8be717608bb36c3cf921f129db24349396d Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期二, 10 六月 2025 17:55:29 +0800
Subject: [PATCH] 大改图层树

---
 src/store/simulation.js |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/store/simulation.js b/src/store/simulation.js
index 36df33b..3e85e8c 100644
--- a/src/store/simulation.js
+++ b/src/store/simulation.js
@@ -1,12 +1,15 @@
 // stores/ui.js
 import { defineStore } from 'pinia'
 import { ref } from 'vue'
-
 export const useSimStore = defineStore('simulation', () => {
+    // 鐩綍鏍戦�変腑
+    const userSelectedLayers = ref([])
     // 闅愭偅鐐瑰垪琛�
-    const DeviceShowSwitch = ref(true)
-    const DangerShowSwitch = ref(true)
+    const DeviceShowSwitch = ref(false)
+    const DangerShowSwitch = ref(false)
     const DangerPoint = ref([])
+    // 鐩戞祴璁惧鍒楄〃
+    const devices = ref([])
     const navigationShow = ref(true)
     const leftShow = ref(false)
     const rightShow = ref(false)
@@ -151,6 +154,12 @@
         }
     }
 
+    const updateSelectedLayers = (keys) => {
+        userSelectedLayers.value = keys;
+    }
+
+
+
     return {
         // UI 鐘舵��
         navigationShow,
@@ -179,6 +188,8 @@
         DangerShowSwitch,
         waterLegendData,
         isShowEarth,
+        userSelectedLayers,
+        devices,
 
         // 鏂规鐩稿叧鏂规硶
         setSchemCard,
@@ -199,5 +210,6 @@
         startMNFZ,
         startMNPG,
         handleNavClick,
+        updateSelectedLayers
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3