修复Trojan一处解析错误

This commit is contained in:
Peng-YM
2020-12-31 14:30:01 +08:00
parent 4752438966
commit 37370cccda
6 changed files with 28 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ const store = new Vuex.Store({
state: {
title: "Sub-Store",
clipboard: "",
isLoading: false,
successMessage: "",
errorMessage: "",
@@ -19,7 +20,7 @@ const store = new Vuex.Store({
env: {},
settings: {
theme: {
darkMode: false
darkMode: window.localStorage.getItem("darkMode") || false
}
}
},
@@ -33,6 +34,10 @@ const store = new Vuex.Store({
state.title = title;
},
SET_LOADING(state, loading) {
state.isLoading = loading;
},
SET_SNACK_BAR_TIMER(state, timer) {
state.snackbarTimer = timer;
},