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 }>