diff --git a/themes/hexo/components/MenuGroupCard.js b/themes/hexo/components/MenuGroupCard.js index 1641023a..a618c953 100644 --- a/themes/hexo/components/MenuGroupCard.js +++ b/themes/hexo/components/MenuGroupCard.js @@ -4,11 +4,11 @@ import { useGlobal } from '@/lib/global' import CONFIG_HEXO from '../config_hexo' const MenuGroupCard = (props) => { - const { postCount, categories, tags } = props + const { postCount, categoryOptions, tagOptions } = props const { locale } = useGlobal() const archiveSlot =
{postCount}
- const categorySlot =
{categories?.length}
- const tagSlot =
{tags?.length}
+ const categorySlot =
{categoryOptions?.length}
+ const tagSlot =
{tagOptions?.length}
const links = [ { name: locale.COMMON.ARTICLE, to: '/archive', slot: archiveSlot, show: CONFIG_HEXO.MENU_ARCHIVE }, @@ -34,12 +34,12 @@ const MenuGroupCard = (props) => { - ); + ) } else { return null } })} - ); + ) } export default MenuGroupCard