From c79cd3d2d00603a8c029b59a0b6f71a6b38f35ed Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 3 Jan 2023 20:07:18 +0800 Subject: [PATCH] fix --- themes/hexo/components/ArticleRecommend.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/hexo/components/ArticleRecommend.js b/themes/hexo/components/ArticleRecommend.js index e6900c09..28ea5637 100644 --- a/themes/hexo/components/ArticleRecommend.js +++ b/themes/hexo/components/ArticleRecommend.js @@ -9,6 +9,8 @@ import { useGlobal } from '@/lib/global' * @returns */ export default function ArticleRecommend({ recommendPosts, siteInfo }) { + const { locale } = useGlobal() + if ( !CONFIG_HEXO.ARTICLE_RECOMMEND || !recommendPosts || @@ -16,7 +18,7 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) { ) { return <> } - const { locale } = useGlobal() + return (