lrf402788946 5 lat temu
rodzic
commit
4df07367c9
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      store/notice.js

+ 5 - 0
store/notice.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   lookInfo: `/api/train/notice/look `,
   noticeInfo: `/api/train/notice`,
+  classInfo: id => `/api/train/class/classinfo/${id}`,
 };
 const state = () => ({});
 const mutations = {};
@@ -27,6 +28,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.lookInfo}`, payload);
     return res;
   },
+  async classList({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.classInfo(payload)}`);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];