lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
b3cfc472cf
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/store/transaction.js

+ 5 - 0
src/store/transaction.js

@@ -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,