liuyu 4 anni fa
parent
commit
47321db6df
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      src/views/live/roomDetail.vue

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

@@ -225,7 +225,6 @@ export default {
             const thr_ = document.getElementById(id_);
             let style = 'width:70%;';
             style += 'height:200px;';
-            //style += 'background: blue;';
             style += 'position:absolute;top:0;left:0;';
             style += 'z-index:1;';
             thr_.style.cssText = style;
@@ -235,7 +234,6 @@ export default {
             const left_ = (width / 5) * (elm.swichindex - 1);
             let style = 'width:20%;';
             style += 'height:70px;';
-            style += 'background: blue;';
             style += 'position:absolute;top:200;';
             style = 'left:' + left_ + 'px;';
             thr_.style.cssText = style;
@@ -250,7 +248,7 @@ export default {
             let style = 'width:20%;';
             style += 'height:70px;';
             style += 'background: blue;';
-            style += 'position:absolute;top:200;';
+            style += 'position:absolute;top:200px;';
             style = 'left:' + left_ + 'px;';
             thr_.style.cssText = style;
           }
@@ -452,8 +450,6 @@ export default {
         await this.client_.publish(this.localStream_);
         this.index_ = this.index_ + 1;
         if (this.index_ < 6) {
-          const newdata = { swichuserid: this.userId_, swichindex: this.index_ };
-          this.swichusers.push(newdata);
           const id_ = 'othe-video-' + this.index_;
           console.log(id_);
           this.localStream_.play(id_);