Skip to content

Commit 57504fc

Browse files
committed
Merge remote-tracking branch 'origin/new_layout' into new_layout
2 parents 34a5383 + 82cc456 commit 57504fc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

app/layout.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ export default function RootLayout({
125125
return (
126126
<html lang="zh-CN" suppressHydrationWarning>
127127
<head>
128-
<style
129-
dangerouslySetInnerHTML={{
130-
__html: `
131-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=block');
132-
`,
133-
}}
128+
<link rel="preconnect" href="https://fonts.googleapis.com" />
129+
<link
130+
rel="preconnect"
131+
href="https://fonts.gstatic.com"
132+
crossOrigin="anonymous"
133+
/>
134+
<link
135+
rel="stylesheet"
136+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap"
134137
/>
135138
{/* 主题脚本:避免首屏闪烁 */}
136139
<script

0 commit comments

Comments
 (0)