feat: 优化暗黑模式切换逻辑,添加初始化脚本

This commit is contained in:
2025-06-04 01:36:03 +08:00
parent 394ebd9e2a
commit 9ab04f8aea
3 changed files with 56 additions and 28 deletions

View File

@@ -38,6 +38,11 @@ export default defineNuxtConfig({
href: "/icon/spark.svg",
},
],
script: [
{
src: "/init_dark.js",
},
],
},
},
vite: {