fix(admin): 剧集列表分页条始终显示
This commit is contained in:
1 parent
becbe18d76
commit
632bf13990
1 file changed
+1
-6
@@ -50,11 +50,6 @@ const existingEpisodeNumbers = computed(() =>
|
||||
snapshotEpisodes.value.map((item) => Number(item.number)).filter((n) => Number.isFinite(n))
|
||||
)
|
||||
|
||||
const showPagination = computed(() => {
|
||||
if (total.value <= 0) return false
|
||||
return Math.ceil(total.value / pageSize.value) > 1
|
||||
})
|
||||
|
||||
const showEmpty = computed(() => !loading.value && episodes.value.length === 0)
|
||||
|
||||
async function loadDramas() {
|
||||
@@ -441,7 +436,7 @@ onMounted(async () => {
|
||||
></el-table-column
|
||||
>
|
||||
</el-table>
|
||||
<div v-if="showPagination" class="pagination"
|
||||
<div class="pagination"
|
||||
><el-pagination
|
||||
v-model:current-page="pageIndex"
|
||||
v-model:page-size="pageSize"
|
||||
|
||||
Reference in new issue
Block a user