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