Skip to content

Commit

Permalink
fix(Init.tsx): Only the Home component has more needs to load the pro…
Browse files Browse the repository at this point in the history
…gress bar
  • Loading branch information
Yue-plus committed Sep 29, 2024
1 parent a268914 commit 0d53ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/layouts/RootLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -37,7 +36,6 @@ const {lang, title, description, subNavigationItems} = Astro.props
<ResponsiveFontSize/>
</head>
<body class="w-full h-full text-white bg-black m-0 overflow-hidden">
<Init client:load />
<div class="w-full h-full relative bg-layout bg-center bg-cover bg-no-repeat">
<div class="relative w-full h-full m-auto max-w-[180rem]">
<Header/>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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";
---

<RootLayout lang={arknightsConfig.language} title={arknightsConfig.title} description={arknightsConfig.description}>
<Init client:load />
<PageTracker client:load/>
<main id="root-page-views" class="w-full h-full relative select-none">
{/* TODO: 使用 <ViewTransitions /> 优化,完全服务端渲染
Expand Down

0 comments on commit 0d53ec8

Please sign in to comment.