|
@@ -5,6 +5,7 @@ import axios from 'axios';
|
|
Vue.use(Vuex);
|
|
Vue.use(Vuex);
|
|
const api = {
|
|
const api = {
|
|
interface: `/api/train/teacher`,
|
|
interface: `/api/train/teacher`,
|
|
|
|
+ status: `/api/train/teacher/status`,
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
@@ -32,6 +33,10 @@ const actions = {
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async status({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.status}`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
let toRequest = () => {
|
|
let toRequest = () => {
|
|
let res = [];
|
|
let res = [];
|