From a9379065db72f846a42e7b9693e8367e424d3e4f Mon Sep 17 00:00:00 2001 From: JimQing Date: Thu, 3 Sep 2020 20:43:29 +0800 Subject: [PATCH] feature: night mode storage --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index fca12a4..ba39813 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -70,7 +70,7 @@ const mutations = { state.currentSize = localStorage.getItem('size') || config.sizeOption[2].value state.codeTheme = localStorage.getItem('codeTheme') || config.codeThemeOption[0].value state.citeStatus = localStorage.getItem('citeStatus') === 'true' - state.nightMode = localStorage.getItem('nightMode') || false + state.nightMode = localStorage.getItem('nightMode') === 'true' state.wxRenderer = new WxRenderer({ theme: setColor(state.currentColor), fonts: state.currentFont,