From a1c388b3018b6f748635b61a98613111b8e9d788 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期三, 11 六月 2025 09:42:54 +0800
Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb

---
 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 131e2a2..c9d7ee6 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)
@@ -153,6 +156,12 @@
         }
     }
 
+    const updateSelectedLayers = (keys) => {
+        userSelectedLayers.value = keys;
+    }
+
+
+
     return {
         // UI 鐘舵��
         navigationShow,
@@ -182,6 +191,8 @@
         waterLegendData,
         currentInfo,
         isShowEarth,
+        userSelectedLayers,
+        devices,
 
         // 鏂规鐩稿叧鏂规硶
         setSchemCard,
@@ -202,5 +213,6 @@
         startMNFZ,
         startMNPG,
         handleNavClick,
+        updateSelectedLayers
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3