From e8088fb4dd374e79366b45a9c1d125f2dc8057bf Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 2 Feb 2024 11:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/_app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index bc03f2c1..9b6a74bc 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -18,7 +18,6 @@ import useAdjustStyle from '@/hooks/useAdjustStyle' // 各种扩展插件 这个要阻塞引入 import ExternalPlugins from '@/components/ExternalPlugins' import GlobalHead from '@/components/GlobalHead' -import { siteConfig } from '@/lib/config' import BLOG from '@/blog.config' /** @@ -32,7 +31,7 @@ const MyApp = ({ Component, pageProps }) => { const route = useRouter() const queryParam = useMemo(() => { - return getQueryParam(route.asPath, 'theme') || siteConfig('THEME', BLOG.THEME, pageProps.NOTION_CONFIG) + return getQueryParam(route.asPath, 'theme') || pageProps?.NOTION_CONFIG?.THEME || BLOG.THEME }, [route]) // 整体布局