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 | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/stores/grid-info.js b/src/stores/grid-info.js index c193329..f843b97 100644 --- a/src/stores/grid-info.js +++ b/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 + }; }); -- Gitblit v1.9.3