|
@@ -5,6 +5,7 @@ import _ from 'lodash';
|
|
|
Vue.use(Vuex);
|
|
|
const api = {
|
|
|
roomInfo: `/api/onlive/room`,
|
|
|
+ lookuserInfo: `/api/onlive/lookuser`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -22,6 +23,10 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.roomInfo}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
+ async lookuserFetch({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$get(`${api.lookuserInfo}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async roomfetch({ commit }, payload) {
|
|
|
const res = await this.$axios.$get(`${api.roomInfo}/roomname`, payload);
|
|
|
return res;
|