From a9c4f7775e82d93638e607fa6c5fafe22f5310b4 Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期五, 16 五月 2025 15:06:27 +0800
Subject: [PATCH] 完善接口部分

---
 src/api/index.js |   32 +-------------------------------
 1 files changed, 1 insertions(+), 31 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 23336cd..dd62064 100644
--- a/src/api/index.js
+++ b/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",
@@ -40,16 +19,7 @@
 	})
 	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",

--
Gitblit v1.9.3