guonan
2025-06-17 be9c1145fc79165142fbe29aacb04dd8e34dd23f
src/store/simulation.js
@@ -2,12 +2,11 @@
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)
@@ -154,9 +153,7 @@
        }
    }
    const updateSelectedLayers = (keys) => {
        userSelectedLayers.value = keys;
    }
@@ -188,7 +185,6 @@
        DangerShowSwitch,
        waterLegendData,
        isShowEarth,
        userSelectedLayers,
        devices,
        // 方案相关方法
@@ -210,6 +206,5 @@
        startMNFZ,
        startMNPG,
        handleNavClick,
        updateSelectedLayers
    }
})