feat: 添加空状态组件,优化数据为空时的展示效果
This commit is contained in:
@@ -21,7 +21,11 @@ function openNewsDetail(item: NewData) {
|
||||
动态新闻
|
||||
</div>
|
||||
|
||||
<div class="space-y-3">
|
||||
<template v-if="data?.data.length === 0">
|
||||
<ui-empty />
|
||||
</template>
|
||||
|
||||
<div v-else class="space-y-3">
|
||||
<div
|
||||
v-for="item in data?.data"
|
||||
:key="item.id"
|
||||
|
||||
Reference in New Issue
Block a user