src/store/simulation.js
@@ -1,7 +1,6 @@ // stores/ui.js import { defineStore } from 'pinia' import { ref } from 'vue' import { createSimData } from '@/api/trApi' export const useSimStore = defineStore('simulation', () => { // 隐患点列表 @@ -30,7 +29,9 @@ const schemCard = ref([]) const backToHome = ref(false) const selectedScheme = ref(null) // 降雨数据列表 const rainFalls = ref() // 降雨单位 const intensityUnit = ref() const setSelectedScheme = (scheme) => { selectedScheme.value = scheme