Explorar el Código

修改学校查重

zs hace 11 meses
padre
commit
8ac4261ea8
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      store/school.js

+ 5 - 0
store/school.js

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