JiMeng, Suno 支持 dark 主题

This commit is contained in:
RockYang
2025-08-11 11:43:24 +08:00
parent 000969d902
commit 80ee41aee7
15 changed files with 760 additions and 27 deletions

View File

@@ -81,6 +81,13 @@ const themeStore = useThemeStore(pinia) // 使用 theme store
// 设置初始主题
document.documentElement.setAttribute('data-theme', themeStore.theme)
// 同时设置初始 dark 类
if (themeStore.theme === 'dark') {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
const app = createApp(App)
app.use(createPinia())
app.use(ConfigProvider)