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