diff --git a/lib/notion/getPageContentText.js b/lib/notion/getPageContentText.js index 06a11f7f..0e52083b 100644 --- a/lib/notion/getPageContentText.js +++ b/lib/notion/getPageContentText.js @@ -168,7 +168,7 @@ export function getPageContentText(post, pageBlockMap) { const postContent = post.content let contentTextList = [] // 防止搜到加密文章的内容 - if (postContent.length > 0 && !post.password) { + if (postContent && postContent.length > 0 && !post.password) { for (const postContentId of postContent) { const blockContentText = getBlockContentText(postContentId) if (blockContentText) {