添加模拟监听
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { useButtonSelectedIdStore } from '@/stores/useButtonSelectedIdStore';
|
import { useButtonSelectedIdStore } from '@/stores/useButtonSelectedIdStore';
|
||||||
import { useLeftLegendStore } from '@/stores/useLeftLegendStore';
|
import { useLeftLegendStore } from '@/stores/useLeftLegendStore';
|
||||||
import { useLoadingInformationStore } from '@/stores/useLoadingInformation';
|
import { useLoadingInformationStore } from '@/stores/useLoadingInformation';
|
||||||
|
import { useSimulationIdStore } from '@/stores/useSimulationIdStore';
|
||||||
import { useStatusStore } from '@/stores/useStatusStore';
|
import { useStatusStore } from '@/stores/useStatusStore';
|
||||||
|
|
||||||
export const useScene = () => {
|
export const useScene = () => {
|
||||||
@@ -8,6 +9,7 @@ export const useScene = () => {
|
|||||||
const loadingInformationStore = useLoadingInformationStore();
|
const loadingInformationStore = useLoadingInformationStore();
|
||||||
const leftLegendStore = useLeftLegendStore();
|
const leftLegendStore = useLeftLegendStore();
|
||||||
const buttonSelectedIdStore = useButtonSelectedIdStore();
|
const buttonSelectedIdStore = useButtonSelectedIdStore();
|
||||||
|
const simulationIdStore = useSimulationIdStore();
|
||||||
|
|
||||||
// 重置场景
|
// 重置场景
|
||||||
const resetScene = () => {
|
const resetScene = () => {
|
||||||
@@ -22,6 +24,9 @@ export const useScene = () => {
|
|||||||
|
|
||||||
// 重置左侧图例
|
// 重置左侧图例
|
||||||
leftLegendStore.resetLegendListInfo();
|
leftLegendStore.resetLegendListInfo();
|
||||||
|
|
||||||
|
// 重置模拟id
|
||||||
|
simulationIdStore.resetSimulationId();
|
||||||
};
|
};
|
||||||
|
|
||||||
return { resetScene };
|
return { resetScene };
|
||||||
|
|||||||
Reference in New Issue
Block a user