浏览代码

Merge pull request #224 from floyd-li/master

fix: dark mode toggle
Archer 2 年之前
父节点
当前提交
539410536c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

@@ -20,7 +20,7 @@ const { wsCache } = useCache()
 
 
 // 根据浏览器当前主题设置系统主题色
 // 根据浏览器当前主题设置系统主题色
 const setDefaultTheme = () => {
 const setDefaultTheme = () => {
-  if (wsCache.get('isDark')) {
+  if (wsCache.get('isDark') !== null) {
     appStore.setIsDark(wsCache.get('isDark'))
     appStore.setIsDark(wsCache.get('isDark'))
     return
     return
   }
   }