|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
],
|
|
|
dateStr: '',
|
|
|
timeStr: '',
|
|
|
- weather: '北京 · 晴 18°C'
|
|
|
+ weather: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -64,9 +64,9 @@ export default {
|
|
|
try {
|
|
|
const res = await getWeather()
|
|
|
const d = res.data
|
|
|
- this.weather = `☁ ${d.weatherDesc} ${d.temperature}°C`
|
|
|
+ this.weather = ` ${d.weatherDesc} ${d.temperature}°C`
|
|
|
} catch (e) {
|
|
|
- this.weather = '☁ 北京 · 晴 18°C'
|
|
|
+ this.weather = ''
|
|
|
}
|
|
|
}
|
|
|
}
|