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;