mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
修复UI不刷新的bug
This commit is contained in:
@@ -17,7 +17,6 @@ const store = new Vuex.Store({
|
||||
collections: {},
|
||||
artifacts: {},
|
||||
env: {},
|
||||
|
||||
settings: {}
|
||||
},
|
||||
|
||||
@@ -70,6 +69,11 @@ const store = new Vuex.Store({
|
||||
state.env = resp.data;
|
||||
})
|
||||
},
|
||||
async FETCH_SETTINGS({state}) {
|
||||
return axios.get("/settings").then(resp => {
|
||||
state.settings = resp.data;
|
||||
});
|
||||
},
|
||||
// update subscriptions
|
||||
async UPDATE_SUBSCRIPTION({dispatch}, {name, sub}) {
|
||||
return axios.patch(`/sub/${name}`, sub).then(() => {
|
||||
|
||||
Reference in New Issue
Block a user