guonan
2025-06-10 f0a0f01ca70e852caf0300fd47d1840799c4d65d
src/api/index.js
@@ -42,6 +42,18 @@
   return await response.json()
}
// export async function getDistrictCount() {
//    const response = await fetch("/json/response.json", {
//       mode: "cors",
//       cache: "no-cache",
//       headers: {
//          "Content-Type": "application/json",
//       },
//    })
//    return await response.json()
// }
export async function getDistrictCountByCity() {
   const response = await fetch("/json/CountByCounty.json", {
      mode: "cors",