mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
修复图标为空时异常
This commit is contained in:
@@ -91,7 +91,7 @@ async function getCustomNav ({ notionPageData }) {
|
||||
const customNav = []
|
||||
if (allPage && allPage.length > 0) {
|
||||
allPage.forEach(p => {
|
||||
customNav.push({ icon: p.icon, name: p.title, to: '/' + p.slug, show: true })
|
||||
customNav.push({ icon: p.icon || null, name: p.title, to: '/' + p.slug, show: true })
|
||||
})
|
||||
}
|
||||
return customNav
|
||||
|
||||
Reference in New Issue
Block a user