소스 검색

Merge branch 'master' of http://git.cc-lotus.info/new_train/frame

guhongwei 4 년 전
부모
커밋
2ebd48ad82
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      store/liveroom.js

+ 5 - 0
store/liveroom.js

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