sync: soul-admin 页面 | 原因: 前端页面修改

This commit is contained in:
卡若
2026-03-08 17:19:57 +08:00
parent 1a9aed70b3
commit 55cba27e2a

View File

@@ -221,6 +221,11 @@ export function ContentPage() {
const tree = buildTree(sectionsList)
const totalSections = sectionsList.length
const rankedSections = [...sectionsList].sort((a, b) => (b.hotScore ?? 0) - (a.hotScore ?? 0))
const RANKING_PAGE_SIZE = 10
const rankingTotalPages = Math.max(1, Math.ceil(rankedSections.length / RANKING_PAGE_SIZE))
const rankingPageSections = rankedSections.slice((rankingPage - 1) * RANKING_PAGE_SIZE, rankingPage * RANKING_PAGE_SIZE)
const loadList = async () => {
setLoading(true)
try {