Bladeren bron

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

guhongwei 4 jaren geleden
bovenliggende
commit
2ebd48ad82
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 5 0
      store/liveroom.js

+ 5 - 0
store/liveroom.js

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