Prechádzať zdrojové kódy

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

guhongwei 4 rokov pred
rodič
commit
2ebd48ad82
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  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,