riku
2025-03-14 8372d022614a1897120802cf1bac90d61651177f
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
  };
});