mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
修复Trojan一处解析错误
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user