fix: move language to the end of the API key
This commit is contained in:
1 parent
c74d2e199a
commit
b918132f0e
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user