fix: declare smooth scroll behavior on root layout
This commit is contained in:
+1
-1
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user