liuyu 4 năm trước cách đây
mục cha
commit
d7fa70ed78
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/live/roomDetail.vue

+ 2 - 2
src/views/live/roomDetail.vue

@@ -623,10 +623,10 @@ export default {
             if (this.index_ < 6) {
               const id_ = 'othe-video-' + this.index_;
               console.log(id_);
-              const newdata = { swichuserid: this.userid_zs, swichindex: this.index_ };
+              const newdata = { swichuserid: userid_zs, swichindex: this.index_ };
               this.swichusers.push(newdata);
               console.log('将用户push到列表里' + this.swichusers);
-              if (this.user.uid === this.userid_zs) {
+              if (this.user.uid === userid_zs) {
                 this.userindex_ = this.index_;
               }
               remoteStream.play(id_);