Browse Source

修改学校查重

zs 11 months ago
parent
commit
8ac4261ea8
1 changed files with 5 additions and 0 deletions
  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;