liming 5 days ago
parent
commit
f5bc6119e4
2 changed files with 2 additions and 3 deletions
  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);