wangjuncheng
2025-06-19 e4de2993c98bd0f828a90da53c9507b977071e3a
src/store/simulation.js
@@ -2,11 +2,12 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useSimStore = defineStore('simulation', () => {
    // 目录树选中
    const userSelectedLayers = ref([])
    // 隐患点列表
    const DangerPoint = ref([])
    const DeviceShowSwitch = ref(false)
    const DangerShowSwitch = ref(false)
    const DangerPoint = ref([])
    // 监测设备列表
    const devices = ref([])
    const navigationShow = ref(true)
@@ -155,7 +156,9 @@
        }
    }
    const updateSelectedLayers = (keys) => {
        userSelectedLayers.value = keys;
    }
@@ -188,6 +191,7 @@
        waterLegendData,
        currentInfo,
        isShowEarth,
        userSelectedLayers,
        devices,
        // 方案相关方法
@@ -209,5 +213,6 @@
        startMNFZ,
        startMNPG,
        handleNavClick,
        updateSelectedLayers
    }
})