|
@ -16,7 +16,8 @@ const { wsCache } = useCache() |
|
|
|
|
|
|
|
|
// 根据浏览器当前主题设置系统主题色 |
|
|
// 根据浏览器当前主题设置系统主题色 |
|
|
const setDefaultTheme = () => { |
|
|
const setDefaultTheme = () => { |
|
|
let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK) |
|
|
// let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK) |
|
|
|
|
|
let isDarkTheme = false |
|
|
if (isDarkTheme === null) { |
|
|
if (isDarkTheme === null) { |
|
|
isDarkTheme = isDark() |
|
|
isDarkTheme = isDark() |
|
|
} |
|
|
} |
|
|