Auto darkmode

This commit is contained in:
Peng-YM
2022-05-24 17:05:56 +08:00
parent 9c30654d31
commit a24525c30c
8 changed files with 25 additions and 77 deletions

View File

@@ -18,11 +18,7 @@ const store = new Vuex.Store({
collections: {},
artifacts: {},
env: {},
settings: {
theme: {
darkMode: window.localStorage.getItem("darkMode") || false
}
}
settings: {}
},
mutations: {
@@ -48,10 +44,6 @@ const store = new Vuex.Store({
SET_ERROR_MESSAGE(state, msg) {
state.errorMessage = msg;
},
SET_DARK_MODE(state, on) {
state.settings.theme.darkMode = on;
}
},