mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 15:10:26 +00:00
fix: 修复 eslint 报错
This commit is contained in:
@@ -51,10 +51,6 @@ export const MenuList = props => {
|
||||
links = customMenu
|
||||
}
|
||||
|
||||
if (!links || links.length === 0) {
|
||||
return null
|
||||
}
|
||||
|
||||
const toggleMenu = () => {
|
||||
setShowMenu(!showMenu) // 切换菜单状态
|
||||
}
|
||||
@@ -63,6 +59,10 @@ export const MenuList = props => {
|
||||
setShowMenu(false)
|
||||
}, [router])
|
||||
|
||||
if (!links || links.length === 0) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/* 移动端菜单切换按钮 */}
|
||||
|
||||
Reference in New Issue
Block a user