mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 07:26:46 +00:00
build
This commit is contained in:
@@ -21,7 +21,7 @@ export async function getConfigMapFromConfigPage(allPages) {
|
||||
const notionConfig = BLOG
|
||||
|
||||
if (!allPages || !Array.isArray(allPages) || allPages.length === 0) {
|
||||
console.warn('[Notion配置] 忽略的配置', allPages, typeof allPages)
|
||||
console.warn('[Notion配置] 忽略的配置')
|
||||
return null
|
||||
}
|
||||
const configPage = allPages?.find(post => {
|
||||
@@ -29,7 +29,7 @@ export async function getConfigMapFromConfigPage(allPages) {
|
||||
})
|
||||
|
||||
if (!configPage) {
|
||||
console.warn('[Notion配置]未找到配置页面', allPages, typeof allPages)
|
||||
console.warn('[Notion配置] 未找到配置页面')
|
||||
return null
|
||||
}
|
||||
const configPageId = configPage.id
|
||||
@@ -40,7 +40,7 @@ export async function getConfigMapFromConfigPage(allPages) {
|
||||
const content = pageRecordMap.block[configPageId].value.content
|
||||
|
||||
if (!content) {
|
||||
console.warn('[Notion配置]未找到配置表格', pageRecordMap.block[configPageId], pageRecordMap.block[configPageId].value)
|
||||
console.warn('[Notion配置] 未找到配置表格', pageRecordMap.block[configPageId], pageRecordMap.block[configPageId].value)
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user