|
@@ -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 = [];
|