날씨 로딩중일떄 글씨 안보이게

This commit is contained in:
dyhj625 2025-04-08 10:33:13 +09:00
parent 6bce7f6e38
commit 2469d3ec88

View File

@ -12,7 +12,7 @@
<img v-if="weather.icon" :src="customIconUrl" :alt="weather.description" :class="customIconClass" /> <img v-if="weather.icon" :src="customIconUrl" :alt="weather.description" :class="customIconClass" />
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<span class="weather-desc">{{ weather.description }}</span> <span class="weather-desc">{{ weather.description }}</span>
<span class="weather-temp" v-if="weather.tempMin !== null && weather.tempMax !== null"> <span class="weather-temp" v-if="weatherReady">
최저 {{ weather.tempMin }}° / 최고 {{ weather.tempMax }}° 최저 {{ weather.tempMin }}° / 최고 {{ weather.tempMax }}°
</span> </span>
</div> </div>
@ -231,6 +231,15 @@
const weather = ref({}); const weather = ref({});
const dailyWeatherList = ref([]); const dailyWeatherList = ref([]);
const weatherReady = computed(() => {
return (
weather.value &&
weather.value.tempMin !== null &&
weather.value.tempMax !== null &&
!!weather.value.description
);
});
// //
const myActiveProjects = computed(() => { const myActiveProjects = computed(() => {
return projectStore.activeMemberProjectList || []; return projectStore.activeMemberProjectList || [];