From 36f94e769781f1873ea7c7dad20d0d08eef3a884 Mon Sep 17 00:00:00 2001 From: chenchun Date: Fri, 4 Sep 2026 17:08:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E5=8A=A0=20suppressHydrationWa?= =?UTF-8?q?rning=20=E2=80=94=20=E6=B2=89=E6=B5=B8=E5=BC=8F=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E6=8F=92=E4=BB=B6=E6=B3=A8=E5=85=A5=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=20hydration=20=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/layout.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/layout.tsx b/app/layout.tsx index d8c1e4a..8425caa 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -42,6 +42,11 @@ export default function RootLayout({ return ( 注入 + // data-immersive-translate-page-theme 等属性,触发属性级 hydration + // 告警;suppressHydrationWarning 只忽略该元素的属性差异, + // 不影响子树的正常 mismatch 检测。 + suppressHydrationWarning className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`} >