修复页面加载bug

This commit is contained in:
2026-05-29 17:09:44 +08:00
parent e36f28a668
commit d3bd3c7c50
3 changed files with 95 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
import type { Metadata } from "next";
import Script from "next/script";
import { AppShell } from "@/components/app-shell";
import { randomUUIDPolyfillScript } from "@/lib/client/random-uuid-polyfill";
import "./globals.css";
export const metadata: Metadata = {
@@ -11,6 +13,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return (
<html lang="zh-CN">
<body>
<Script
id="random-uuid-polyfill"
strategy="beforeInteractive"
dangerouslySetInnerHTML={{ __html: randomUUIDPolyfillScript }}
/>
<AppShell>{children}</AppShell>
</body>
</html>