guhongwei %!s(int64=4) %!d(string=hai) anos
pai
achega
e84a6feb4a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      store/trainplan.js

+ 4 - 0
store/trainplan.js

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