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,