zs 11 mesiacov pred
rodič
commit
8ac4261ea8
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      store/school.js

+ 5 - 0
store/school.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/train/school`,
   nameListNotice: `/api/train/job`,
+  findSchool: `/api/train/school/findSchool`,
 };
 const state = () => ({});
 const mutations = {};
@@ -15,6 +16,10 @@ const actions = {
     const res = await this.$axios.$get(`${api.interface}`, { skip, limit, ...info });
     return res;
   },
+  async findSchool({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.findSchool}`, { skip, limit, ...info });
+    return res;
+  },
   async create({ commit }, payload) {
     const res = await this.$axios.$post(`${api.interface}`, payload);
     return res;