fix: Modify previewType is missing (#1754)

This commit is contained in:
xuanlid 2026-01-27 11:19:16 +08:00 committed by GitHub
parent 63bd3b096c
commit 2fcc416bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -252,7 +252,8 @@ export default {
page_content: item.content,
id: item.blockId || item.block_id,
history: item.id,
name: item.label
name: item.label,
previewType: 'page'
},
true
)

View File

@ -57,7 +57,8 @@ export default {
const params = {
...item,
id: Number(item.page),
history: item.id
history: item.id,
previewType: 'page'
}
params.ancestors = await getFamily(params)
previewPage(params, true)