guonan
2025-05-16 a9c4f7775e82d93638e607fa6c5fafe22f5310b4
src/api/index.js
@@ -1,24 +1,3 @@
export async function getDistrictData() {
   const response = await fetch("/json/隐患点信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getDeviceData() {
   const response = await fetch("/json/综合监测设备信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getSimulateData() {
   const response = await fetch("/json/仿真方案.json", {
      mode: "cors",
@@ -32,6 +11,17 @@
export async function getDuanMainData() {
   const response = await fetch("/json/孙胡沟仿真标注地物.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
         "Content-Type": "application/json",
      },
   })
   return await response.json()
}
export async function getDistrictListData() {
   const response = await fetch("/json/隐患点信息.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {
@@ -75,7 +65,7 @@
}
export async function getMaxInfluenceArea() {
   const response = await fetch("/json/listMaxInfluenceArea_wgs84.json", {
   const response = await fetch("/json/listMaxInfluenceArea_wgs84_output.json", {
      mode: "cors",
      cache: "no-cache",
      headers: {