This commit is contained in:
eric
2026-03-28 00:53:10 -05:00
parent b099437738
commit 2307411b37
4 changed files with 17 additions and 96 deletions

View File

@@ -1,11 +1,13 @@
"use client";
import dynamic from "next/dynamic";
import { HomePageSkeleton } from "./components/HomePageSkeleton";
const HomeClient = dynamic(() => import("./HomeClient"), {
ssr: false,
loading: () => <HomePageSkeleton />,
/** 仅纯色底,避免分包加载前白屏;真正 VIP/非 VIP 界面由 HomeClient 首帧同步读 localStorage 渲染 */
loading: () => (
<div className="min-h-screen bg-[var(--background)]" aria-hidden />
),
});
export function HomeClientLoader() {