소스 검색

修改学校查重

zs 1 년 전
부모
커밋
8ac4261ea8
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;