diff --git a/themes/gitbook/components/NavPostList.js b/themes/gitbook/components/NavPostList.js index a300e502..48222a46 100644 --- a/themes/gitbook/components/NavPostList.js +++ b/themes/gitbook/components/NavPostList.js @@ -31,9 +31,6 @@ const NavPostList = (props) => { groups.push({ category: categoryName, items: [] }) } } - - groups[groups.length - 1].items.push(item) // 将元素加入对应的分组 - return groups }, [])