liuyu преди 4 години
родител
ревизия
d7fa70ed78
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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_);