From 14230ac0316d1e403c54b5a73430bad8ebad00e7 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 16 Dec 2024 19:16:51 +0800
Subject: [PATCH] 新干项目相关调整
---
src/api/space/space.js | 49 +++++++++++++++++++++++++------------------------
1 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/src/api/space/space.js b/src/api/space/space.js
index 59ad24a..74b7a14 100644
--- a/src/api/space/space.js
+++ b/src/api/space/space.js
@@ -1,30 +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,
- });
-};
+ 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
+ const url = `/yw/emergencySpace/page`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3