From e4de2993c98bd0f828a90da53c9507b977071e3a Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期四, 19 六月 2025 14:18:34 +0800
Subject: [PATCH] 1版本恢复

---
 src/store/simulation.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/store/simulation.js b/src/store/simulation.js
index ea2e635..c9d7ee6 100644
--- a/src/store/simulation.js
+++ b/src/store/simulation.js
@@ -2,12 +2,12 @@
 import { defineStore } from 'pinia'
 import { ref } from 'vue'
 export const useSimStore = defineStore('simulation', () => {
-    // 甯ф暟
-    const frameNum = ref(0)
+    // 鐩綍鏍戦�変腑
+    const userSelectedLayers = ref([])
     // 闅愭偅鐐瑰垪琛�
-    const DangerPoint = ref([])
     const DeviceShowSwitch = ref(false)
     const DangerShowSwitch = ref(false)
+    const DangerPoint = ref([])
     // 鐩戞祴璁惧鍒楄〃
     const devices = ref([])
     const navigationShow = ref(true)
@@ -30,6 +30,8 @@
     const schemCard = ref([])
     const backToHome = ref(false)
     const selectedScheme = ref(null)
+    // 褰撳墠妯℃嫙缁忕含搴�
+    const currentInfo = ref({})
     // 鍥句緥
     const waterLegendData = ref([])
     // 妯℃嫙浠跨湡鍥句緥
@@ -154,7 +156,9 @@
         }
     }
 
-
+    const updateSelectedLayers = (keys) => {
+        userSelectedLayers.value = keys;
+    }
 
 
 
@@ -185,9 +189,10 @@
         DeviceShowSwitch,
         DangerShowSwitch,
         waterLegendData,
+        currentInfo,
         isShowEarth,
+        userSelectedLayers,
         devices,
-        frameNum,
 
         // 鏂规鐩稿叧鏂规硶
         setSchemCard,
@@ -208,5 +213,6 @@
         startMNFZ,
         startMNPG,
         handleNavClick,
+        updateSelectedLayers
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3