fix-build

This commit is contained in:
tangly1024
2023-03-26 12:02:31 +08:00
parent cdcf7b5f0b
commit e2e93c2a3f
10 changed files with 45 additions and 29 deletions

View File

@@ -23,6 +23,11 @@ export const MenuListSide = (props) => {
if (BLOG.CUSTOM_MENU) {
links = customMenu
}
if (!links || links.length === 0) {
return null
}
return (
<nav>
{/* {links.map(link => <MenuItemNormal key={link.id} link={link} />)} */}

View File

@@ -25,6 +25,10 @@ export const MenuListTop = (props) => {
links = customMenu
}
if (!links || links.length === 0) {
return null
}
return (<>
<nav id='nav-mobile' className='leading-8 justify-center font-light w-full flex'>
{links?.map(link => link && link.show && <MenuItemDrop key={link.id} link={link} />)}