날씨 로딩중일떄 글씨 안보이게
This commit is contained in:
parent
6bce7f6e38
commit
2469d3ec88
@ -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 || [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user