Skip to content

Commit

Permalink
Merge pull request #86 from tolerious/feat/refactor-app
Browse files Browse the repository at this point in the history
✨ Add empty content to today's word.
  • Loading branch information
tolerious authored Feb 2, 2025
2 parents 8962611 + 9a24b4b commit 256cc68
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 256cc68

Please sign in to comment.