liming 1 周之前
父节点
当前提交
f5bc6119e4
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      src/views/im/chat/index.vue
  2. 1 2
      src/views/im/hook/messagesHook.js

+ 1 - 1
src/views/im/chat/index.vue

@@ -425,7 +425,7 @@ const beforeRead = (file) => {
   return true;
 };
 
-//  创建呼叫:开启语音电话
+//  创建呼叫:开启语音电话: 调试用,正式逻辑读src/views/im/hook/messagesHook.js
 const startAudioOnline = async () => {
   showVoiceCall.value = true;
   // 初始化webrtc连接

+ 1 - 2
src/views/im/hook/messagesHook.js

@@ -197,8 +197,7 @@ export const handleMessageHook = (message, state) => {
 };
 
 // 创建呼叫:开启语音电话
-const startAudioOnline = (video) => {
-  showVoiceCall.value = true;
+const startAudioOnline = (video) => { 
   // 初始化webrtc连接
   rtcStore.initConnection(true);