修复登录倒计时颜色

This commit is contained in:
hanhh
2021-08-25 18:58:45 +08:00
parent 8ce1a33bd3
commit 79e5b2fb84
2 changed files with 11 additions and 4 deletions
+3 -3
View File
@@ -45,11 +45,11 @@ export default function (props: any) {
}, [props.location.pathname]);
useEffect(() => {
const theme = localStorage.getItem('qinglong_dark_theme') || 'auto';
const _theme = localStorage.getItem('qinglong_dark_theme') || 'auto';
setFetchMethod(window.fetch);
if (theme === 'dark') {
if (_theme === 'dark') {
enableDarkMode({});
} else if (theme === 'light') {
} else if (_theme === 'light') {
disableDarkMode();
} else {
followSystemColorScheme({});