mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Sub-Store 1.2 支持生成远程配置
现在允许用户生成配置并上传到Gist。
This commit is contained in:
@@ -15,6 +15,7 @@ const store = new Vuex.Store({
|
||||
|
||||
subscriptions: {},
|
||||
collections: {},
|
||||
artifacts: {},
|
||||
env: {},
|
||||
|
||||
settings: {}
|
||||
@@ -57,6 +58,12 @@ const store = new Vuex.Store({
|
||||
state.collections = data;
|
||||
});
|
||||
},
|
||||
async FETCH_ARTIFACTS({state}) {
|
||||
return axios.get("/artifacts").then(resp => {
|
||||
const {data} = resp.data;
|
||||
state.artifacts = data;
|
||||
});
|
||||
},
|
||||
// fetch env
|
||||
async FETCH_ENV({state}) {
|
||||
return axios.get("/utils/env").then(resp => {
|
||||
|
||||
Reference in New Issue
Block a user