修复图标为空时异常

This commit is contained in:
tangly1024
2022-02-28 12:36:24 +08:00
parent dc7937fe43
commit 50842262cb

View File

@@ -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