mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 07:26:48 +00:00
修复单页嵌套无法打开的问题
This commit is contained in:
@@ -111,13 +111,12 @@ export async function getStaticProps({ params: { prefix } }) {
|
||||
|
||||
// 处理非列表内文章的内信息
|
||||
if (!props?.post) {
|
||||
const pageId = prefix.slice(-1)[0]
|
||||
const pageId = prefix
|
||||
if (pageId.length >= 32) {
|
||||
const post = await getNotion(pageId)
|
||||
props.post = post
|
||||
}
|
||||
}
|
||||
|
||||
// 无法获取文章
|
||||
if (!props?.post) {
|
||||
props.post = null
|
||||
|
||||
Reference in New Issue
Block a user