Update layout.tsx

This commit is contained in:
Fuck U 2023-04-04 00:13:31 +08:00 committed by GitHub
parent 161c906584
commit ebb2621996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,11 @@ function Meta() {
);
}
export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
@ -58,13 +62,8 @@ export default function RootLayout({ children }: { children: React.ReactNode }):
rel="stylesheet"
></link>
<script src="/serviceWorkerRegister.js" defer></script>
{/* 在这里添加51la站长统计代码 */}
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
<script>{'LA.init({id:"你的id",ck:"你的id",hashMode:true})'}</script>
</head>
<body>{children}</body>
</html>
);
}