diff --git a/im-uniapp/components/group-rtc-join/group-rtc-join.vue b/im-uniapp/components/group-rtc-join/group-rtc-join.vue new file mode 100644 index 0000000..0c0081f --- /dev/null +++ b/im-uniapp/components/group-rtc-join/group-rtc-join.vue @@ -0,0 +1,89 @@ + + + + + + 发起人 + + + + {{rtcInfo.userInfos.length+'人正在通话中'}} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/im-uniapp/store/chatStore.js b/im-uniapp/store/chatStore.js index 75950af..5356df3 100644 --- a/im-uniapp/store/chatStore.js +++ b/im-uniapp/store/chatStore.js @@ -51,7 +51,6 @@ export default { } }) }) - console.log(cacheChats.length) }, openChat(state, chatInfo) { let chats = this.getters.findChats(); @@ -295,7 +294,6 @@ export default { }); // 将消息一次性装载回来 state.chats = cacheChats; - console.log(cacheChats.length) this.commit("saveToStorage"); }, saveToStorage(state) { diff --git a/im-uniapp/store/configStore.js b/im-uniapp/store/configStore.js new file mode 100644 index 0000000..ba289c2 --- /dev/null +++ b/im-uniapp/store/configStore.js @@ -0,0 +1,32 @@ +import http from '../common/request' + +export default { + state: { + webrtc: {} + }, + mutations: { + setConfig(state, config) { + state.webrtc = config.webrtc; + }, + clear(state){ + state.webrtc = {}; + } + }, + actions:{ + loadConfig(context){ + return new Promise((resolve, reject) => { + http({ + url: '/system/config', + method: 'GET' + }).then((config) => { + console.log("系统配置",config) + context.commit("setConfig",config); + resolve(); + }).catch((res)=>{ + reject(res); + }); + }) + } + } + +} \ No newline at end of file