From d5eb6f8940588812685965eaa7e2871b1821c8cd Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 3 Feb 2023 13:57:48 +0800 Subject: [PATCH] =?UTF-8?q?hexo=20tag\category=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/MenuGroupCard.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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