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 };