src/views/left/KGSimOption/HistorySimulation.vue
@@ -120,6 +120,7 @@
import { useSimStore } from "@/store/simulation.js"; // 引入 Store
import { getRainfallData } from "@/api/hpApi.js";
import { SimAPIStore } from "@/store/simAPI";
import { EventBus } from "@/eventBus"; // 引入事件总线
// 获取 Store 实例
const simStore = SimAPIStore();
@@ -138,7 +139,7 @@
// 定义 Props
const props = defineProps({
  selectedArea: {
    type: String,
    type: Object,
    required: true,
  },
});
@@ -193,6 +194,7 @@
    history: rainfallHistory.value,
  };
  await simStore.addSimCheme(forms);
  EventBus.emit("close-selectArea");
};
// 关闭保存方案对话框