封面图

This commit is contained in:
tangly1024
2024-10-05 15:02:06 +08:00
parent 674561e2d9
commit d2a37b3a17
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import getAllPageIds from '@/lib/notion/getAllPageIds'
import { getAllTags } from '@/lib/notion/getAllTags'
import { getConfigMapFromConfigPage } from '@/lib/notion/getNotionConfig'
import getPageProperties, {
adjustPageProperties
adjustPageProperties
} from '@/lib/notion/getPageProperties'
import { fetchInBatches, getPage } from '@/lib/notion/getPostBlocks'
import { compressImage, mapImgUrl } from '@/lib/notion/mapImage'
@@ -51,7 +51,7 @@ export async function getGlobalData({
} catch (error) {
console.error('异常', error)
}
return data
return handleDataBeforeReturn(deepClone(data))
}
/**
@@ -77,7 +77,7 @@ export async function getNotionPageData({ pageId, from }) {
}
// 返回给前端的数据做处理
return handleDataBeforeReturn(deepClone(data))
return data
}
/**