This commit is contained in:
qiuyuan 2025-08-04 15:56:52 +08:00
parent 0b395638ed
commit 128fd1f7c8

View File

@ -39,7 +39,7 @@
<view class="weather-content"> <view class="weather-content">
<view class="weather-main"> <view class="weather-main">
<view class="current-weather"> <view class="current-weather">
<image class="weather-icon" :src="weather.weather ? getWeatherIcon(weather.weather) : '/static/imgs/weather/default.png'" mode="aspectFit"></image> <image class="weather-icon" :src="weather.weather ? getWeatherIcon(weather.weather) : ''" mode="aspectFit"></image>
</image> </image>
<text class="current-temp">{{weather.real}}°</text> <text class="current-temp">{{weather.real}}°</text>
</view> </view>
@ -216,7 +216,7 @@
}; };
// //
const defaultIcon = '/static/imgs/weather/default.png'; const defaultIcon = '';
// //
for (const key in weatherMap) { for (const key in weatherMap) {