fix(theme): unable to access preset theme value

This commit is contained in:
QC2168 2023-06-26 14:05:53 +08:00
parent ea2dcb75b0
commit 3d9d6ec641
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
import { atom } from 'recoil';
import { Local } from '@/utils/storage';
import { ThemeType } from '../src/lib/css/theme';
export const themeModeState = atom({
key: 'themeMode',
default: Local.get('themeMode') || ThemeType.LIGHT,
default: Local.get('themeMode') || 'light',
});