guhongwei 5 years ago
parent
commit
9c2fea4023
2 changed files with 3 additions and 6 deletions
  1. 1 4
      store/live/apply.js
  2. 2 2
      store/market/password.js

+ 1 - 4
store/live/apply.js

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

+ 2 - 2
store/market/password.js

@@ -25,8 +25,8 @@ const actions = {
     const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
     const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
     return res;
     return res;
   },
   },
-  async update({ commit }, { id, ...data }) {
-    const res = await this.$axios.$post(`${api.userInfo}`, data);
+  async update({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.userInfo}`, payload);
     return res;
     return res;
   },
   },