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);
 const api = {
   liveroomInfo: `/api/train/liveroom`,
+  personCount: `/api/train/liveroom/personcount`,
 };
 const state = () => ({});
 const mutations = {};
@@ -29,6 +30,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.liveroomInfo}/${payload}`);
     return res;
   },
+  async personCount({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.personCount}`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,