添加自定义主题支持

This commit is contained in:
mtvpls
2025-12-12 18:06:34 +08:00
parent 4ff7c1caf3
commit 15d86e3252
7 changed files with 918 additions and 1 deletions
+2
View File
@@ -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