添加模拟监听
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user