From 45c07959bf6357316246aea547d387fe2d7f9c24 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 7 Jun 2023 17:03:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=81=AE=E7=BD=A9=E5=92=8C=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/global.js | 2 +- pages/index.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/global.js b/lib/global.js index f96d326a..74289162 100644 --- a/lib/global.js +++ b/lib/global.js @@ -21,7 +21,7 @@ export function GlobalContextProvider({ children }) { const [theme, setTheme] = useState(BLOG.THEME) // 默认博客主题 const [isDarkMode, updateDarkMode] = useState(BLOG.APPEARANCE === 'dark') // 默认深色模式 const [onLoading, setOnLoading] = useState(false) // 抓取文章数据 - const [onReading, setOnReading] = useState(true) // 网页资源加载 + const [onReading, setOnReading] = useState(false) // 网页资源加载 const router = useRouter() useEffect(() => { diff --git a/pages/index.js b/pages/index.js index 8de156c9..9331cb5a 100644 --- a/pages/index.js +++ b/pages/index.js @@ -26,8 +26,7 @@ const Index = props => { const loadLayout = async () => { setLayoutIndex(dynamic(() => import(`@/themes/${theme}/LayoutIndex`))) } - console.log(loadLayout) - // loadLayout() + loadLayout() }, [theme]) return }>