From 0d53ec85deb01d5a49b102f6874122ea08ed7749 Mon Sep 17 00:00:00 2001 From: Yue-plus Date: Sun, 29 Sep 2024 14:10:35 +0800 Subject: [PATCH] fix(Init.tsx): Only the Home component has more needs to load the progress bar --- src/layouts/RootLayout.astro | 2 -- src/pages/index.astro | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/RootLayout.astro b/src/layouts/RootLayout.astro index 79cba83..e9c3794 100644 --- a/src/layouts/RootLayout.astro +++ b/src/layouts/RootLayout.astro @@ -9,7 +9,6 @@ import {Menu} from "../components/header/NavMenu" import ToolBox from "../components/ToolBox" import OwnerInfo from "../components/OwnerInfo" import {SvgDefs} from "../components/SvgIcons" -import {Init} from "../components/Init"; interface Props { lang?: string @@ -37,7 +36,6 @@ const {lang, title, description, subNavigationItems} = Astro.props -
diff --git a/src/pages/index.astro b/src/pages/index.astro index e5ea318..f632e69 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,9 +5,11 @@ import LineDecorator from "../components/LineDecorator" import ScrollTip from "../components/ScrollTip" import arknightsConfig from "../../arknights.config" import RootPageViews from "./_views/RootPageViews"; +import {Init} from "../components/Init"; --- +
{/* TODO: 使用 优化,完全服务端渲染