fix(ui): 在根 HTML 标签添加 suppressHydrationWarning 修复主题水合报错
This commit is contained in:
parent
0e9a5fc12f
commit
f160c2bdcb
@ -24,7 +24,7 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
<html lang="zh-CN" suppressHydrationWarning className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
<body>
|
||||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
|
||||
{children}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user