From 548dcb58164aaeb7ec8a4f3425953bcd25d83c65 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 15 Jan 2025 18:40:00 +0800
Subject: [PATCH] 应急空间位置更新
---
src/api/space/space.js | 43 ++++++++++++++++++++++++++-----------------
1 files changed, 26 insertions(+), 17 deletions(-)
diff --git a/src/api/space/space.js b/src/api/space/space.js
index b6c5fb0..74b7a14 100644
--- a/src/api/space/space.js
+++ b/src/api/space/space.js
@@ -1,22 +1,31 @@
import request from 'utils/http'
+const { VITE_APP_BASE } = import.meta.env
+
export const getDetail = (params) => {
- const url = `/yw/emergencySpace/getDetail`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
-
-
-
+ const url = `/yw/emergencySpace/getDetail`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
export const getList = (params) => {
- const url = `/yw/emergencySpace/page`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
\ No newline at end of file
+ const url = `${VITE_APP_BASE}xg/yjkj.json`
+ return request({
+ url,
+ method: 'get',
+ params,
+ localJSON: true
+ })
+}
+
+export const getGouQu = (params) => {
+ const url = `/yw/emergencySpace/page`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3