|
@@ -5,6 +5,7 @@ Vue.use(Vuex);
|
|
|
const api = {
|
|
|
liveroomInfo: `/api/train/liveroom`,
|
|
|
personCount: `/api/train/liveroom/personcount`,
|
|
|
+ notice: `/api/train/liveroom/sendmsg`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -34,6 +35,10 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.personCount}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
+ async notice({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.notice}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
};
|
|
|
export default {
|
|
|
namespaced: true,
|