From 036647fcdc936273e78597408ee3fba09534ffd8 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期一, 21 四月 2025 16:12:41 +0800 Subject: [PATCH] change --- src/api/index.js | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 6b84f35..23336cd 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -40,6 +40,26 @@ }) return await response.json() } +export async function getDevicetListData() { + 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: { + "Content-Type": "application/json", + }, + }) + return await response.json() +} export async function getDistrictCount() { const response = await fetch("/json/鍖椾含甯傞殣鎮g偣鎸夊尯缁熻.json", { -- Gitblit v1.9.3