Ver código fonte

Merge branch 'question-alert' into 'dev'

fix: 修正中台侧未上传视频却显示视频播放组件Bug

See merge request skyeye/skyeye_frontend/skyeye-admin!79
航飞 楼 1 ano atrás
pai
commit
b63a182f36

+ 1 - 1
src/views/datamanager/alertformdata/components/common/DetailDialog.vue

@@ -9,7 +9,7 @@
       <div>
         <div class="title">问题图片/视频</div>
         <div class="media-box">
-          <div class="video-box" v-if="videoPaths">
+          <div class="video-box" v-if="videoPaths && videoPaths.length != 0">
             <img src="@/assets/images/alert/video-play.png" @click="videoDialogVisible = true"
               style="object-fit:contain; width:200px; height:200px; border: solid 1px #CCC; cursor: pointer;" />
           </div>

+ 0 - 1
src/views/datamanager/alertformdata/components/show/Show.vue

@@ -192,7 +192,6 @@ const handleDetail = (row) => {
   detailDescription.value = row.description;
   detailPictures.value = row.pictures;
   detailVideos.value = row.videos;
-  console.log(detailVideos.value);
 };
 
 // 添加