fix: declare smooth scroll behavior on root layout

This commit is contained in:
2026-11-05 23:34:11 +08:00
parent 81a34666cf
commit 6ca4b00d2c
+1 -1
View File
@@ -9,7 +9,7 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="zh-CN">
<html lang="zh-CN" data-scroll-behavior="smooth">
<body>{children}</body>
</html>
);