Browse Source

生物安防

xsh 3 năm trước cách đây
mục cha
commit
82c34f36df
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>