Merge pull request #224 from floyd-li/master

fix: dark mode toggle
This commit is contained in:
Archer 2023-01-11 15:51:44 +08:00 committed by GitHub
commit 539410536c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }