wuhongyu 5 years ago
parent
commit
00ea87a71e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      store/live/apply.js

+ 5 - 2
store/live/apply.js

@@ -21,8 +21,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.applyInfo}/${payload}`);
     return res;
   },
-  async update({ commit }, { id, ...info } = {}) {
-    const res = await this.$axios.$post(`${api.applyInfo}/${id}`, { ...info });
+  async update({ commit }, { dock_id, id, ...data }) {
+    const res = await this.$axios.$post(
+      `${api.applyInfo}/${dock_id}/check/${id}`,
+      data
+    );
     return res;
   },
   async delete({ commit }, payload) {