|
@ -120,12 +120,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleChange() { |
|
|
handleChange() { |
|
|
getWeatherFacts().then((response) => { |
|
|
getWeatherFacts().then((response) => { |
|
|
console.log("response", response.data); |
|
|
|
|
|
for (let key in response.data) { |
|
|
for (let key in response.data) { |
|
|
debugger; |
|
|
|
|
|
if (response.data[key].name == this.city) { |
|
|
if (response.data[key].name == this.city) { |
|
|
this.cityWeather = response.data[key]; |
|
|
this.cityWeather = response.data[key]; |
|
|
console.log("this.cityWeather", this.cityWeather); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|