Skip to content

Commit

Permalink
✨ Add empty content to today's word.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerious committed Feb 2, 2025
1 parent a354f16 commit 9a24b4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/TodayWords.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<template>
<Header title="Words of Today" @goBack="handleGoBack"></Header>
<div class="p-2 grid lg:grid-cols-5 grid-cols-3 lg:gap-3 gap-2">
<div v-if="todayWord.length > 0" class="p-2 grid lg:grid-cols-5 grid-cols-3 lg:gap-3 gap-2">
<word-of-today-item :wordText="i.en" v-for="i in todayWord.wordList" :key="i"></word-of-today-item>
</div>
<el-empty description="No Data." v-else />
</template>

<script setup lang="ts">
Expand Down

0 comments on commit 9a24b4b

Please sign in to comment.