sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -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 || '未知错误'))
|
||||
|
||||
Reference in New Issue
Block a user