Sub-Store 1.2 支持生成远程配置

现在允许用户生成配置并上传到Gist。
This commit is contained in:
Peng-YM
2020-12-08 20:19:46 +08:00
parent 29abac4619
commit bb8bac760e
10 changed files with 403 additions and 36 deletions

View File

@@ -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 => {