|
@@ -6,6 +6,7 @@ const jwt = require('jsonwebtoken');
|
|
|
Vue.use(Vuex);
|
|
|
const api = {
|
|
|
transaction: `/api/live/v0/dock/transaction`,
|
|
|
+ step: id => `/api/live/v0/dock/transaction/step/${id}`, //post
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -35,6 +36,10 @@ const actions = {
|
|
|
const res = await this.$axios.$delete(`${api.transaction}/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
+ async step({ commit }, { id, ...body }) {
|
|
|
+ const res = await this.$axios.$post(`${api.step(id)}`, body);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
};
|
|
|
export default {
|
|
|
namespaced: true,
|