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

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

@@ -459,7 +459,7 @@ export default {
         // otheplaydiv.appendChild(newdiv);
         const newdata = { swichuserid: this.userId_, swichindex: this.index_ };
         this.swichusers.push(newdata);
-        console.log(id_);
+        console.log('将用户push到列表里' + this.swichusers);
         this.localStream_.play(id_);
       }
     },
@@ -617,6 +617,7 @@ export default {
               console.log(id_);
               const newdata = { swichuserid: this.userid_zs, swichindex: this.index_ };
               this.swichusers.push(newdata);
+              console.log('将用户push到列表里' + this.swichusers);
               if (this.user.uid === this.userid_zs) {
                 this.userindex_ = this.index_;
               }