From 8372d022614a1897120802cf1bac90d61651177f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 14 三月 2025 18:20:56 +0800 Subject: [PATCH] 2025.3.14 --- src/stores/grid-info.js | 43 ++++++++++++++++++------------------------- 1 files changed, 18 insertions(+), 25 deletions(-) diff --git a/src/stores/grid-info.js b/src/stores/grid-info.js index 7abfcbb..f843b97 100644 --- a/src/stores/grid-info.js +++ b/src/stores/grid-info.js @@ -1,29 +1,22 @@ -// import { ref } from 'vue'; -// import { defineStore } from 'pinia'; -// import { useFetchData } from '@/composables/fetchData'; -// import sceneInfoApi from '@/api/sceneInfoApi'; -// import { useToolboxStore } from '@/stores/toolbox'; +import { ref } from 'vue'; +import { defineStore } from 'pinia'; -// const toolboxStore = useToolboxStore(); +export const useGridStore = defineStore('grid', () => { + // 缃戞牸鎺у埗绫婚泦鍚� + const gridClzList = ref([]); -// // 璧拌埅璁惧 -// export const useGridStore = defineStore('grid', () => { -// const selectedGrid = ref(undefined); + const selectedSatelliteProxy = undefined; -// function searchScene(lng, lat) { -// // if (toolboxStore.sceneSearchStatus) { -// return fetchData(() => { -// return sceneInfoApi -// .searchByCoordinate(lng, lat, radius.value * 1000) -// .then((res) => { -// sceneList.value = res.data.filter((v) => { -// return v.typeId != 19 && v.typeId != 20; -// }); -// return res; -// }); -// }); -// // } -// } + const selectedGridCellAndDataDetail = ref(undefined); -// return { radius, sceneList, loading, searchScene }; -// }); + function pushGridClz(clz) { + gridClzList.value.push(clz); + } + + return { + gridClzList, + selectedSatelliteProxy, + selectedGridCellAndDataDetail, + pushGridClz + }; +}); -- Gitblit v1.9.3