src/views/left/KGSimOption/PredictiveSimulation.vue
@@ -112,6 +112,8 @@
import { useSimStore } from "@/store/simulation.js"; // 引入 Store
import { SimAPIStore } from "@/store/simAPI";
import { getRainfallData } from "@/api/hpApi";
import { EventBus } from "@/eventBus"; // 引入事件总线
onMounted(() => {
  getRain();
@@ -133,7 +135,7 @@
// 定义 Props
const props = defineProps({
  selectedArea: {
    type: String,
    type: Object,
    required: true,
  },
});
@@ -203,6 +205,8 @@
    prediction: forms.prediction,
  };
  await simStore.addSimCheme(params);
  EventBus.emit("close-selectArea");
};
// 打开方案