diff --git a/src/App.vue b/src/App.vue index ecd8a72..dca89e5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -73,7 +73,7 @@ export default { const response = await axios.get( `https://api.openweathermap.org/data/2.5/weather?q=${ doc.doc.data().city - }&units=metric&lang='zh_cn'&appid=${this.APIkey}` + }&units=metric&appid=${this.APIkey}&lang=zh_cn` ); const data = response.data; firebaseDB diff --git a/src/views/WeatherView.vue b/src/views/WeatherView.vue index cd3fe94..4f78a10 100644 --- a/src/views/WeatherView.vue +++ b/src/views/WeatherView.vue @@ -62,9 +62,9 @@ export default { doc.data().currentWeather.coord.lat }&lon=${ doc.data().currentWeather.coord.lon - }&exclude=current,minutley,alerts&units=metric&lang='zh_cn'&appid=${ + }&exclude=current,minutley,alerts&units=metric&appid=${ this.APIkey - }` + }&lang=zh_cn` ) .then((res) => { this.forecast = res.data;