fix: move language to the end of the API key

This commit is contained in:
Leon Xu committed 2022-02-22 15:25:01 -08:00
1 parent c74d2e199a
commit b918132f0e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;