mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 15:10:37 +00:00
编译异常修复,菜单名为空通过编译
This commit is contained in:
@@ -63,7 +63,11 @@ export async function getSiteDataByPageId({ pageId, from }) {
|
|||||||
// 获取NOTION原始数据,此接支持mem缓存。
|
// 获取NOTION原始数据,此接支持mem缓存。
|
||||||
const pageRecordMap = await getPage(pageId, from)
|
const pageRecordMap = await getPage(pageId, from)
|
||||||
// 将Notion数据按规则转成站点数据
|
// 将Notion数据按规则转成站点数据
|
||||||
const data = await converNotionToSiteDate(pageId, from, deepClone(pageRecordMap))
|
const data = await converNotionToSiteDate(
|
||||||
|
pageId,
|
||||||
|
from,
|
||||||
|
deepClone(pageRecordMap)
|
||||||
|
)
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -472,7 +476,7 @@ function getCustomNav({ allPages }) {
|
|||||||
p.to = p.slug
|
p.to = p.slug
|
||||||
customNav.push({
|
customNav.push({
|
||||||
icon: p.icon || null,
|
icon: p.icon || null,
|
||||||
name: p.title,
|
name: p.title || p.name || '',
|
||||||
href: p.href,
|
href: p.href,
|
||||||
target: p.target,
|
target: p.target,
|
||||||
show: true
|
show: true
|
||||||
|
|||||||
Reference in New Issue
Block a user