修复页面加载bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user