import { ref } from 'vue'; import { defineStore } from 'pinia'; export const useGridStore = defineStore('grid', () => { // 网格控制类集合 const gridClzList = ref([]); const selectedSatelliteProxy = undefined; const selectedGridCellAndDataDetail = ref(undefined); function pushGridClz(clz) { gridClzList.value.push(clz); } return { gridClzList, selectedSatelliteProxy, selectedGridCellAndDataDetail, pushGridClz }; });