From cc289bb5454da73f6b4dca8835c7150191d4b183 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 18 Oct 2021 13:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=AD=E8=BD=AC=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPostListScroll.js | 11 +++-------- layouts/BaseLayout.js | 6 +++--- pages/article/[slug].js | 9 +++++++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index fc98dff9..d6484df0 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -66,7 +66,7 @@ const BlogPostListScroll = ({ posts = [], tags }) => { if (!postsToShow || postsToShow.length === 0) { return } else { - return
+ return
{/* 文章列表 */}
@@ -76,13 +76,8 @@ const BlogPostListScroll = ({ posts = [], tags }) => {
- {hasMore - ? (
加载更多
) - : ( -
加载完了😰
- )} - +
{hasMore ? '继续加载' : '加载完了😰'}
diff --git a/layouts/BaseLayout.js b/layouts/BaseLayout.js index 1d05fe56..d5de2544 100644 --- a/layouts/BaseLayout.js +++ b/layouts/BaseLayout.js @@ -50,10 +50,10 @@ const BaseLayout = ({ children, layout, fullWidth, tags, meta, post, ...customMe {/* Middle Wrapper */}
-
- {children} +
+ {children} +
-