Browse Source

修改天气监测接口地址

vera_min 3 years ago
parent
commit
4ce3ca03a5
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/api/datahub/index.ts

+ 4 - 5
src/api/datahub/index.ts

@@ -53,12 +53,11 @@ export default {
    },
   
    weather:{
-      getCityWeatherList: () => get('/region/weather/cityWeatherList'),
-      getWhichCityWeather: (params: object) => get('/region/weather/getInfoById', params),
-      getTemperatureEchartById: (params: object) => get('/region/weather/getTemperatureEchartById', params),
-      getWindpowerEchartById: (params: object) => get('/region/weather/getWindpowerEchartById', params),
+      getCityWeatherList: () => get('/envirotronics/weather/cityWeatherList'),
+      getWhichCityWeather: (params: object) => get('/envirotronics/weather/getInfoById', params),
+      getTemperatureEchartById: (params: object) => get('/envirotronics/weather/getTemperatureEchartById', params),
+      getWindpowerEchartById: (params: object) => get('/envirotronics/weather/getWindpowerEchartById', params),
    },
-
    statistics:{
       getStatisticsChartData: (params: object) => get('/statistics/bar/chart/data', params),
       getStatisticsLineChartData: (params: object) => get('/statistics/broken/line/data', params),