Skip to content

Commit

Permalink
style: 优化首页站点无数据显示样式
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jun 20, 2024
1 parent 0361951 commit 547f2e7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@
:website-info="item"
/>
</template>
<el-empty v-else description="此分类暂无站点,请前往后台添加数据!" />
</div>
<div
v-if="!websiteList?.data?.list?.length"
class="flex justify-center items-center flex-col"
>
<el-empty description="此分类暂无站点,请前往后台添加数据!" />
<NuxtLink to="/admin">
<el-button color="#626aef" plain :dark="colorMode.value === 'dark'">前往后台</el-button>
</NuxtLink>
</div>
</ClientOnly>
</div>
Expand All @@ -32,6 +40,8 @@
<script setup lang="ts">
import type { PageResponse, CategoryList, Response, WebsiteList } from '~/types'
const colorMode = useColorMode()
const category_id = ref('')
// 请求站点列表
Expand Down

0 comments on commit 547f2e7

Please sign in to comment.