import { ref } from 'vue';
|
import { defineStore } from 'pinia';
|
import gridApi from '@/api/gridApi';
|
import { useFetchData } from '@/composables/fetchData';
|
|
// 卫星遥测网格
|
export const usesatelliteGridStore = defineStore('satelliteGrid', () => {
|
const gridGropiList = ref([]);
|
const { loading, fetchData } = useFetchData();
|
|
function fetchGridGroup(area) {
|
return fetchData((page, pageSize) => {
|
return gridApi.fetchGridGroup(area, page, pageSize).then((res) => {
|
return res;
|
});
|
});
|
}
|
});
|