wuhongyu 5 년 전
부모
커밋
c0eaea37fd
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      store/market/productpact.js

+ 7 - 0
store/market/productpact.js

@@ -4,6 +4,7 @@ import _ from 'lodash';
 Vue.use(Vuex);
 const api = {
   productpactInfo: `/api/market/productpact`,
+  findpactInfo: `/api/market/productpact/findpact`,
 };
 const state = () => ({});
 const mutations = {};
@@ -25,6 +26,12 @@ const actions = {
     const res = await this.$axios.$get(`${api.productpactInfo}/${payload}`);
     return res;
   },
+
+  async findpact({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.findpactInfo}/${payload}`);
+    return res;
+  },
+
   async update({ commit }, { id, ...data }) {
     const res = await this.$axios.$post(`${api.productpactInfo}/update/${id}`, data);
     return res;