From 906e27c5204247b5f7ba69ccdec907d144f8f58a Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Tue, 16 Jun 2026 18:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=8B=9F=E7=9B=91?= =?UTF-8?q?=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useScene.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks/useScene.ts b/src/hooks/useScene.ts index 1e3c92b..561d21d 100644 --- a/src/hooks/useScene.ts +++ b/src/hooks/useScene.ts @@ -1,6 +1,7 @@ import { useButtonSelectedIdStore } from '@/stores/useButtonSelectedIdStore'; import { useLeftLegendStore } from '@/stores/useLeftLegendStore'; import { useLoadingInformationStore } from '@/stores/useLoadingInformation'; +import { useSimulationIdStore } from '@/stores/useSimulationIdStore'; import { useStatusStore } from '@/stores/useStatusStore'; export const useScene = () => { @@ -8,6 +9,7 @@ export const useScene = () => { const loadingInformationStore = useLoadingInformationStore(); const leftLegendStore = useLeftLegendStore(); const buttonSelectedIdStore = useButtonSelectedIdStore(); + const simulationIdStore = useSimulationIdStore(); // 重置场景 const resetScene = () => { @@ -22,6 +24,9 @@ export const useScene = () => { // 重置左侧图例 leftLegendStore.resetLegendListInfo(); + + // 重置模拟id + simulationIdStore.resetSimulationId(); }; return { resetScene };