|
@@ -31,6 +31,10 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.interface}/updateclass`, data);
|
|
|
return res;
|
|
|
},
|
|
|
+ async updatereteacher({ commit }, { id, ...data }) {
|
|
|
+ const res = await this.$axios.$post(`${api.interface}/updatereteacher`, data);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async delete({ commit }, payload) {
|
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
|
return res;
|