Fix topics mobile card list pagination: use paginatedTopics instead of filteredTopics

This commit is contained in:
Yuzhiran Dev
2026-05-19 08:28:56 +08:00
parent 1c78828681
commit 55e5f3d166
+1 -1
View File
@@ -82,7 +82,7 @@
<el-pagination background layout="prev, pager, next" :total="filteredTopics.length" :page-size="pageSize" :current-page="currentPage" @current-change="currentPage = $event"></el-pagination> <el-pagination background layout="prev, pager, next" :total="filteredTopics.length" :page-size="pageSize" :current-page="currentPage" @current-change="currentPage = $event"></el-pagination>
</div> </div>
<div class="topic-card-list" v-if="filteredTopics && filteredTopics.length > 0"> <div class="topic-card-list" v-if="filteredTopics && filteredTopics.length > 0">
<div v-for="topic in filteredTopics" :key="topic.id" class="topic-card" :class="{ 'is-checked': selectedTopicIds.includes(topic.id) }"> <div v-for="topic in paginatedTopics" :key="topic.id" class="topic-card" :class="{ 'is-checked': selectedTopicIds.includes(topic.id) }">
<div class="topic-card-header"> <div class="topic-card-header">
<div class="topic-card-title"> <div class="topic-card-title">
<el-checkbox :checked="selectedTopicIds.includes(topic.id)" @change="toggleCheck(topic.id)" style="margin-right:6px;"></el-checkbox> <el-checkbox :checked="selectedTopicIds.includes(topic.id)" @change="toggleCheck(topic.id)" style="margin-right:6px;"></el-checkbox>