diff --git a/components/RecommendPosts.js b/components/RecommendPosts.js
index 8ed1ec0b..f3aeb7c1 100644
--- a/components/RecommendPosts.js
+++ b/components/RecommendPosts.js
@@ -6,7 +6,7 @@ import { useGlobal } from '@/lib/global'
* 展示文章推荐
*/
const RecommendPosts = ({ recommendPosts }) => {
- if (!recommendPosts) {
+ if (!recommendPosts || recommendPosts.length < 1) {
return <>>
}
const { locale } = useGlobal()
diff --git a/layouts/BaseLayout.js b/layouts/BaseLayout.js
index 948ad096..8738af70 100644
--- a/layouts/BaseLayout.js
+++ b/layouts/BaseLayout.js
@@ -71,26 +71,28 @@ const BaseLayout = ({
{/* 顶部导航栏 */}