guonan
2025-06-06 cf4ed06dea0076e518319de24c5120bb3fe0dae9
src/components/tools/LayerTree.vue
@@ -28,7 +28,7 @@
import { loadAreaPolygon, clearAreaPolygon } from "@/utils/area";
import { checkedKeys } from "@/store/index";
import { getDuanMainData, getDistrictListData } from "@/api/index.js";
import { getDeviceInfo, getDangerPoint } from "@/api/hpApi";
import { getDeviceInfoShg, getDangerPoint } from "@/api/hpApi";
import { useSimStore } from "@/store/simulation";
@@ -254,7 +254,7 @@
// 监测设备列表
const getDevicetList = async () => {
  const res = await getDeviceInfo(); // 调整getDeviceInfo以接受动态参数,如果需要的话
  const res = await getDeviceInfoShg(); // 调整getDeviceInfoShg以接受动态参数,如果需要的话
  devicetList.value = res.data.pageData.filter((item) =>
    item.deviceName?.includes("孙胡沟")
  );