guhongwei пре 4 година
родитељ
комит
e84a6feb4a
1 измењених фајлова са 4 додато и 0 уклоњено
  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;