Browse Source

fix:天气接口修改

chenzhen2 1 year ago
parent
commit
22e366ca3d
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/apis/envmonitor.ts
  2. 1 1
      src/views/weather/index.vue

+ 2 - 1
src/apis/envmonitor.ts

@@ -13,7 +13,8 @@ export const getCompanyInfo = (companyInfo: RequestParams) => {
   return https().request<RootObject<CompanyModel>>(`/api/company/config/${companyInfo.companyId}`, Method.GET, undefined, ContentType.json)
 }
 export const getWeather = () => {
-  return https().request<RootWeatherObject<OutherWeather>>(`${objectService}weather/getCurrent`, Method.GET, undefined, ContentType.json)
+  // return https().request<RootWeatherObject<OutherWeather>>(`${objectService}weather/getCurrent`, Method.GET, undefined, ContentType.json)
+  return https().request<RootWeatherObject<OutherWeather>>(`${objectService}weather/getCurrentWeather`, Method.GET, undefined, ContentType.json)
 }
 
 // 获取环境数据

+ 1 - 1
src/views/weather/index.vue

@@ -109,7 +109,7 @@
   </div>
 </template>
   
-  <script lang="ts">
+ <script lang="ts">
 import $ from "jquery";
 import { nextTick } from "vue";
 // import { getWeather } from "@/apis/envmonitor.ts";