lrf402788946 hace 4 años
padre
commit
6ed29bb495
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      store/util.js

+ 4 - 0
store/util.js

@@ -9,6 +9,7 @@ const api = {
   interface: modelname => `/api/train/common/findone/${modelname}`,
   findModel: model => `/api/train/common/findbymodel?modelname=${model}`,
   findByIds: model => `/api/train/common/findbyids/${model}`,
+  util: `/api/train/util`,
 };
 const state = () => ({});
 const mutations = {};
@@ -26,6 +27,9 @@ const actions = {
     const res = await this.$axios.$get(`${api.findByIds(model)}`, { data: ids });
     return res;
   },
+  async utilMethod({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.util}`, payload);
+  },
 };
 export default {
   namespaced: true,