Kaynağa Gözat

Merge branch 'master' of http://git.cc-lotus.info/new_train/frame

lrf402788946 5 yıl önce
ebeveyn
işleme
af27ae42df
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      store/trainplan.js

+ 4 - 0
store/trainplan.js

@@ -28,6 +28,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`, data);
+    return res;
+  },
   async delete({ commit }, payload) {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;