xsh hace 3 años
padre
commit
82c34f36df
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/Monit/Monit.vue

+ 2 - 2
src/views/Monit/Monit.vue

@@ -16,10 +16,10 @@
       <swiper style="height: 100%;  margin-top: auto; margin-bottom: auto;" ref="mySwiper" class="swiper" :options="swiperOption">
         <swiper-slide v-for="(item, i) in videoList" :key="i">
           <div class="case">
-            <template v-if="index && (i ===0 || i === 1 || i === 2)">
+            <template v-if="num === 0 && (i === 0 || i === 1 || i === 2)">
               <iframe  :src="'static/jinm/index.html?'+'1'+','+ item.wsUrl +','+ item.rtspUrl + ',' +'100%' + ',' + '0'" style="width: 100%; height: 100%;" frameborder="0"  allowfullscreen="true"></iframe>
             </template>
-            <template v-else-if="index === false && (i ===3 || i === 4 || i === 5)">
+            <template v-else-if="num === 3 && (i ===3 || i === 4 || i === 5)">
               <iframe  :src="'static/jinm/index.html?'+'1'+','+ item.wsUrl +','+ item.rtspUrl + ',' +'100%' + ',' + '0'" style="width: 100%; height: 100%;" frameborder="0"  allowfullscreen="true"></iframe>
             </template>
           </div>