liuyu il y a 4 ans
Parent
commit
2f443874c9
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 14 0
      src/views/live/roomDetail.vue

+ 14 - 0
src/views/live/roomDetail.vue

@@ -404,6 +404,13 @@ export default {
             this.stermStop(this.localStream_);
             this.localStream_.muteAudio();
             this.localStream_.muteVideo();
+            const newdatas = [];
+            for (const elm of this.stremMeetlist) {
+              if (elm.swichuserid !== body.userid) {
+                newdatas.push(elm);
+              }
+            }
+            this.$set(this, `stremMeetlist`, newdatas);
           }
         }
       }
@@ -825,6 +832,13 @@ export default {
             if (this.index_ > 0) {
               this.index_ = this.index_ - 1;
             }
+            const newdatas = [];
+            for (const elm of this.stremMeetlist) {
+              if (elm.swichuserid !== useridzs_) {
+                newdatas.push(elm);
+              }
+            }
+            this.$set(this, `stremMeetlist`, newdatas);
           }
           console.log('退出');
           console.log(event);