src/stores/grid-info.js
@@ -1,11 +1,22 @@ import { ref } from 'vue'; import { defineStore } from 'pinia'; // 走航设备 export const useGridStore = defineStore('grid', () => { // 网格控制类集合 const gridClzList = ref([]); const selectedSatelliteProxy = undefined; const selectedGridCellAndDataDetail = ref(undefined); return { selectedSatelliteProxy, selectedGridCellAndDataDetail }; function pushGridClz(clz) { gridClzList.value.push(clz); } return { gridClzList, selectedSatelliteProxy, selectedGridCellAndDataDetail, pushGridClz }; });