|
@@ -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,
|