guhongwei 4 jaren geleden
bovenliggende
commit
b304367824
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      store/teacher.js

+ 5 - 1
store/teacher.js

@@ -7,6 +7,7 @@ const api = {
   interface: `/api/train/teacher`,
   status: `/api/train/teacher/status`,
   scoreimport: `/api/train/teacher/teaimport`, //filepath
+  teacherLesson: `/api/train/teacher/fetchteachers`,
 };
 const state = () => ({});
 const mutations = {};
@@ -24,7 +25,10 @@ const actions = {
     const res = await this.$axios.$get(`${api.interface}/${payload}`);
     return res;
   },
-
+  async lessonteafetch({ commit }, ids) {
+    const res = await this.$axios.$post(`${api.teacherLesson}`, { ids });
+    return res;
+  },
   async update({ commit }, { id, ...data }) {
     const res = await this.$axios.$post(`${api.interface}/update/${id}`, data);