From 6c4dd0c77b019d948fb6c2c7b6103c56412a11fe Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 4 Sep 2024 16:54:49 +0800 Subject: [PATCH] =?UTF-8?q?gitbook=20=E4=B8=BB=E9=A2=98=E6=B7=BB=E5=8A=A0l?= =?UTF-8?q?oadingcover?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/components/LoadingCover.js | 7 ------- themes/gitbook/index.js | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 themes/gitbook/components/LoadingCover.js diff --git a/themes/gitbook/components/LoadingCover.js b/themes/gitbook/components/LoadingCover.js deleted file mode 100644 index f74757ef42c..00000000000 --- a/themes/gitbook/components/LoadingCover.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function LoadingCover() { - return
-
- -
-
-} diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index 5d4255e1b48..ca82dd5265e 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -3,6 +3,7 @@ import Comment from '@/components/Comment' import { AdSlot } from '@/components/GoogleAdsense' import Live2D from '@/components/Live2D' +import LoadingCover from '@/components/LoadingCover' import NotionIcon from '@/components/NotionIcon' import NotionPage from '@/components/NotionPage' import ShareBar from '@/components/ShareBar' @@ -113,6 +114,11 @@ const LayoutBase = props => { setFilteredNavPages(getNavPagesWithLatest(allNavPages, latestPosts, post)) }, [router]) + const GITBOOK_LOADING_COVER = siteConfig( + 'GITBOOK_LOADING_COVER', + true, + CONFIG + ) return ( { )} + {GITBOOK_LOADING_COVER && } + {/* 移动端导航抽屉 */}