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

This commit is contained in:
卡若
2026-03-09 04:53:17 +08:00
parent cbc443b500
commit 9d14127fa8

View File

@@ -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 || '未知错误'))