liuyu 4 vuotta sitten
vanhempi
commit
0a5cbe90fc
1 muutettua tiedostoa jossa 12 lisäystä ja 10 poistoa
  1. 12 10
      src/views/live/roomDetail.vue

+ 12 - 10
src/views/live/roomDetail.vue

@@ -242,16 +242,18 @@ export default {
           }
         }
       } else {
-        for (const i = 1; i < 6; i++) {
-          const id_ = 'othe-video-' + i;
-          const thr_ = document.getElementById(id_);
-          const left_ = (width / 5) * (i - 1);
-          let style = 'width:20%;';
-          style += 'height:70px;';
-          style += 'background: blue;';
-          style += 'position:absolute;top:200;';
-          style = 'left:' + left_ + 'px;';
-          thr_.style.cssText = style;
+        if (this.othedivshow) {
+          for (const i = 1; i < 6; i++) {
+            const id_ = 'othe-video-' + i;
+            const thr_ = document.getElementById(id_);
+            const left_ = (width / 5) * (i - 1);
+            let style = 'width:20%;';
+            style += 'height:70px;';
+            style += 'background: blue;';
+            style += 'position:absolute;top:200;';
+            style = 'left:' + left_ + 'px;';
+            thr_.style.cssText = style;
+          }
         }
       }
       const lvr_ = document.getElementById('look-video-right');