wangjuncheng
2025-06-18 32947c42c53afdd9a6c49637c4ecc8e5fa4be24c
src/store/simulation.js
@@ -1,12 +1,14 @@
// stores/ui.js
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useSimStore = defineStore('simulation', () => {
    // 隐患点列表
    const DeviceShowSwitch = ref(true)
    const DangerShowSwitch = ref(true)
    const DangerPoint = ref([])
    const DeviceShowSwitch = ref(false)
    const DangerShowSwitch = ref(false)
    // 监测设备列表
    const devices = ref([])
    const navigationShow = ref(true)
    const leftShow = ref(false)
    const rightShow = ref(false)
@@ -153,6 +155,10 @@
        }
    }
    return {
        // UI 状态
        navigationShow,
@@ -182,6 +188,7 @@
        waterLegendData,
        currentInfo,
        isShowEarth,
        devices,
        // 方案相关方法
        setSchemCard,