Skip to content

Commit a937906

Browse files
committed
feature: night mode storage
1 parent 8d822dd commit a937906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const mutations = {
7070
state.currentSize = localStorage.getItem('size') || config.sizeOption[2].value
7171
state.codeTheme = localStorage.getItem('codeTheme') || config.codeThemeOption[0].value
7272
state.citeStatus = localStorage.getItem('citeStatus') === 'true'
73-
state.nightMode = localStorage.getItem('nightMode') || false
73+
state.nightMode = localStorage.getItem('nightMode') === 'true'
7474
state.wxRenderer = new WxRenderer({
7575
theme: setColor(state.currentColor),
7676
fonts: state.currentFont,

0 commit comments

Comments
 (0)