lrf402788946 há 4 anos atrás
pai
commit
452505135e
1 ficheiros alterados com 5 adições e 0 exclusões
  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,