From 23869b8089886e3c1b480a08711579f8c3994359 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 21 Mar 2022 17:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/ArticleRecommend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index a0503694..2bde709c 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -9,7 +9,7 @@ import { useGlobal } from '@/lib/global' * @returns */ export default function ArticleRecommend ({ recommendPosts }) { - if (!recommendPosts || !CONFIG_HEXO.ARTICLE_RECOMMEND) { + if (!CONFIG_HEXO.ARTICLE_RECOMMEND || !recommendPosts || recommendPosts.length === 0) { return <> } const { locale } = useGlobal()