fix 小问题

This commit is contained in:
tangly1024
2025-06-05 13:13:08 +08:00
parent 06f3770b3e
commit c26d58a27c
2 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ export async function getSiteDataByPageId({ pageId, from }) {
`site_data_${pageId}`,
async (pageId, from) => {
const pageRecordMap = await getPage(pageId, from)
return convertNotionToSiteDate(pageId, from, deepClone(pageRecordMap))
return convertNotionToSiteData(pageId, from, deepClone(pageRecordMap))
},
pageId,
from
@@ -141,7 +141,7 @@ const EmptyData = pageId => {
* 这里统一对数据格式化
* @returns {Promise<JSX.Element|null|*>}
*/
async function convertNotionToSiteDate(pageId, from, pageRecordMap) {
async function convertNotionToSiteData(pageId, from, pageRecordMap) {
if (!pageRecordMap) {
console.error('can`t get Notion Data ; Which id is: ', pageId)
return {}