添加自定义主题支持
This commit is contained in:
@@ -109,6 +109,8 @@ export default async function RootLayout({
|
||||
content='width=device-width, initial-scale=1.0, viewport-fit=cover'
|
||||
/>
|
||||
<link rel='apple-touch-icon' href='/icons/icon-192x192.png' />
|
||||
{/* 主题CSS */}
|
||||
<link rel='stylesheet' href='/api/theme/css' />
|
||||
{/* 将配置序列化后直接写入脚本,浏览器端可通过 window.RUNTIME_CONFIG 获取 */}
|
||||
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
|
||||
<script
|
||||
|
||||
Reference in New Issue
Block a user