保存用户深色模式

This commit is contained in:
tangly1024
2023-07-28 17:00:02 +08:00
parent 70d6f9b685
commit af2a5b3928
2 changed files with 18 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ export function GlobalContextProvider({ children }) {
useEffect(() => {
initLocale(lang, locale, updateLang, updateLocale)
initDarkMode(isDarkMode, updateDarkMode)
initDarkMode(updateDarkMode)
initTheme()
}, [])