diff --git a/src/api/hsApi.js b/src/api/hsApi.js index 5418193..a44a416 100644 --- a/src/api/hsApi.js +++ b/src/api/hsApi.js @@ -20,4 +20,12 @@ method: "get", params }); +} +// 查询最近一天的降雨 +export function rainCalendarLately(params) { + return request({ + url: `/hsApi/rainData/rainCalendarLately`, + method: "get", + params + }); } \ No newline at end of file diff --git a/src/api/hsApi.js b/src/api/hsApi.js index 5418193..a44a416 100644 --- a/src/api/hsApi.js +++ b/src/api/hsApi.js @@ -20,4 +20,12 @@ method: "get", params }); +} +// 查询最近一天的降雨 +export function rainCalendarLately(params) { + return request({ + url: `/hsApi/rainData/rainCalendarLately`, + method: "get", + params + }); } \ No newline at end of file diff --git a/src/views/oneMap/components/FHPL.vue b/src/views/oneMap/components/FHPL.vue index 2f6a470..553264d 100644 --- a/src/views/oneMap/components/FHPL.vue +++ b/src/views/oneMap/components/FHPL.vue @@ -14,12 +14,13 @@ -
+
- + + + + + \ No newline at end of file diff --git a/src/api/hsApi.js b/src/api/hsApi.js index 5418193..a44a416 100644 --- a/src/api/hsApi.js +++ b/src/api/hsApi.js @@ -20,4 +20,12 @@ method: "get", params }); +} +// 查询最近一天的降雨 +export function rainCalendarLately(params) { + return request({ + url: `/hsApi/rainData/rainCalendarLately`, + method: "get", + params + }); } \ No newline at end of file diff --git a/src/views/oneMap/components/FHPL.vue b/src/views/oneMap/components/FHPL.vue index 2f6a470..553264d 100644 --- a/src/views/oneMap/components/FHPL.vue +++ b/src/views/oneMap/components/FHPL.vue @@ -14,12 +14,13 @@ -
+
- + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 28584ad..0cc9b8b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,9 +6,9 @@ const Timestamp = new Date().getTime(); //随机时间戳 -// const targetUrl = 'http://192.168.20.145:13000'; //张鸿志 -const targetUrl = 'http://192.168.16.105:13000'; //张亚辉 -// const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上 +// const targetUrl = 'http://192.168.48.145:13000'; //张鸿志 +// const targetUrl = 'http://192.168.16.105:13000'; //张亚辉 +const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上 // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {