diff --git a/soul-admin/src/pages/content/ContentPage.tsx b/soul-admin/src/pages/content/ContentPage.tsx index bd466830..0feafa29 100644 --- a/soul-admin/src/pages/content/ContentPage.tsx +++ b/soul-admin/src/pages/content/ContentPage.tsx @@ -441,6 +441,8 @@ export function ContentPage() { filePath: section.filePath, isFree: section.isFree || section.price === 0, isNew: sec.isNew ?? section.isNew, + isPinned: pinnedSectionIds.includes(section.id), + hotScore: section.hotScore ?? 0, }) } else { setEditingSection({ @@ -451,6 +453,8 @@ export function ContentPage() { filePath: section.filePath, isFree: section.isFree, isNew: section.isNew, + isPinned: pinnedSectionIds.includes(section.id), + hotScore: section.hotScore ?? 0, }) if (data && !(data as { success?: boolean }).success) { alert('无法读取文件内容: ' + ((data as { error?: string }).error || '未知错误'))