guhongwei 5 년 전
부모
커밋
9c2fea4023
2개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  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;
   },
   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;
   },
   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}`);
     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;
   },