lrf402788946 4 роки тому
батько
коміт
e05947f726
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      store/liveroom.js

+ 5 - 0
store/liveroom.js

@@ -4,6 +4,7 @@ import _ from 'lodash';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
   liveroomInfo: `/api/train/liveroom`,
   liveroomInfo: `/api/train/liveroom`,
+  personCount: `/api/train/liveroom/personcount`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -29,6 +30,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.liveroomInfo}/${payload}`);
     const res = await this.$axios.$delete(`${api.liveroomInfo}/${payload}`);
     return res;
     return res;
   },
   },
+  async personCount({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.personCount}`, payload);
+    return res;
+  },
 };
 };
 export default {
 export default {
   namespaced: true,
   namespaced: true,