修复隐藏文章显示问题

This commit is contained in:
tangly
2022-10-20 13:01:32 +08:00
parent 9ddad487ec
commit cd233f5060
9 changed files with 9 additions and 9 deletions

View File

@@ -98,7 +98,7 @@ export async function getStaticProps({ params: { slug } }) {
// slug 是个数组
const fullSlug = slug.join('/')
const from = `slug-props-${fullSlug}`
const props = await getGlobalNotionData({ from, pageType: ['Post'] })
const props = await getGlobalNotionData({ from })
props.post = props.allPages.find((p) => {
return p.slug === fullSlug || p.id === idToUuid(fullSlug)
})