lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
6ed29bb495
Modificáronse 1 ficheiros con 4 adicións e 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,