lrf402788946 4 년 전
부모
커밋
b3cfc472cf
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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,