修复优化代码带来的错误

This commit is contained in:
2026-09-17 04:45:50 +08:00
parent 7f6323f64c
commit d3a09954ba
2 changed files with 6 additions and 5 deletions
-3
View File
@@ -1,4 +1,3 @@
import Script from "next/script";
import "@/app/globals.css";
export { metadata, viewport } from "@/components/layout/site-document";
@@ -8,8 +7,6 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
<html lang="zh-Hans" suppressHydrationWarning>
<body>
{children}
<Script id="theme-preference" src="/init-theme.js" strategy="beforeInteractive" />
<Script id="locale-canonicalization" src="/init-locale.js" strategy="beforeInteractive" />
</body>
</html>
);