Ver Fonte

调试im通话

yh há 1 semana atrás
pai
commit
2fefeee15d
2 ficheiros alterados com 33 adições e 32 exclusões
  1. 1 0
      package.json
  2. 32 32
      src/components/message/message-send-box.vue

+ 1 - 0
package.json

@@ -58,6 +58,7 @@
     "livekit-client": "^2.15.4",
     "mta-h5-analysis": "^2.0.15",
     "nprogress": "0.2.0",
+    "open-im-sdk-wasm": "^3.8.0",
     "patch-package": "^8.0.0",
     "quill": "1.3.7",
     "screenfull": "5.0.2",

+ 32 - 32
src/components/message/message-send-box.vue

@@ -498,38 +498,38 @@ export default {
     },
 
     // 群聊确定按钮处理
-    callingHandler() {
-      if (this.callingList.length < 1) {
-        this.$message.warning('请选择成员')
-        return
-      }
-
-      if (this.listTpye === 'groupAt') {
-        // @成员处理...(原有逻辑)
-        return
-      }
-
-      if (this.listTpye === 'calling') {
-        const callingData = {
-          memberList: this.callingList,
-          type: 3 // 群聊
-        }
-
-        // 1. 存储通话信息
-        this.$store.commit('setCallingList', callingData)
-
-        // 2. 根据类型触发不同事件
-        if (this.callingType === 'video') {
-          console.log("发起群视频通话,成员:", this.callingList)
-          this.$bus.$emit('video-call')
-        } else {
-          console.log("发起群语音通话,成员:", this.callingList)
-          this.$bus.$emit('audio-call')
-        }
-
-        this.showCallingMember = false
-      }
-    },
+    // callingHandler() {
+    //   if (this.callingList.length < 1) {
+    //     this.$message.warning('请选择成员')
+    //     return
+    //   }
+    //
+    //   if (this.listTpye === 'groupAt') {
+    //     // @成员处理...(原有逻辑)
+    //     return
+    //   }
+    //
+    //   if (this.listTpye === 'calling') {
+    //     const callingData = {
+    //       memberList: this.callingList,
+    //       type: 3 // 群聊
+    //     }
+    //
+    //     // 1. 存储通话信息
+    //     this.$store.commit('setCallingList', callingData)
+    //
+    //     // 2. 根据类型触发不同事件
+    //     if (this.callingType === 'video') {
+    //       console.log("发起群视频通话,成员:", this.callingList)
+    //       this.$bus.$emit('video-call')
+    //     } else {
+    //       console.log("发起群语音通话,成员:", this.callingList)
+    //       this.$bus.$emit('audio-call')
+    //     }
+    //
+    //     this.showCallingMember = false
+    //   }
+    // },
     handleEmojiShow () {
       this.emojiShow = true
       this.bigEmojiShow = false