feat: 默认改为暗色模式

This commit is contained in:
砂糖
2025-09-06 14:36:26 +08:00
parent 934105f644
commit 384e1a87c3
8 changed files with 743 additions and 412 deletions

View File

@@ -13,10 +13,8 @@ const isDark = useDark()
onMounted(() => {
nextTick(() => {
// 初始化主题样式
console.log(isDark.value)
if (isDark.value) {
if (!isDark.value) {
useSettingsStore().toggleTheme()
}
handleThemeStyle(useSettingsStore().theme)