lrf402788946 4 anni fa
parent
commit
b3cfc472cf
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/store/transaction.js

+ 5 - 0
src/store/transaction.js

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