guhongwei 4 년 전
부모
커밋
270bc3d64a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      store/live/dock.js

+ 4 - 0
store/live/dock.js

@@ -50,6 +50,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.dockInfo}/createvipuser/${id}`, data);
     return res;
   },
+  async updateGood({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.dockInfo}/goods/${id}`, data);
+    return res;
+  },
 };
 
 export default {