guhongwei пре 2 година
родитељ
комит
233031d993
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/store/product.js

+ 4 - 0
src/store/product.js

@@ -34,6 +34,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.productInfo}/${payload}`);
     return res;
   },
+  async import({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.productInfo}/import`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,