mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-29 15:10:06 +00:00
修复部署错误
This commit is contained in:
@@ -67,11 +67,11 @@ async function getPageProperties(id, block, schema, authToken, tagOptions, siteI
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
properties.type = properties.type[0]
|
properties.type = properties.type?.[0]
|
||||||
properties.status = properties.status[0]
|
properties.status = properties.status?.[0]
|
||||||
|
|
||||||
if (properties.type === 'Post') {
|
if (properties.type === 'Post') {
|
||||||
properties.slug = `${BLOG.POST_URL_PREFIX ? BLOG.POST_URL_PREFIX + '/' : ''}` + (properties.slug ?? properties.id)
|
properties.slug = BLOG.POST_URL_PREFIX + '/' + (properties.slug ?? properties.id)
|
||||||
} else {
|
} else {
|
||||||
properties.slug = (properties.slug ?? properties.id)
|
properties.slug = (properties.slug ?? properties.id)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user