liyongli 1 rok temu
rodzic
commit
8ba3d0bb87

+ 2 - 2
src/view/allMedia/imageProcessing/detail.vue

@@ -116,8 +116,8 @@ onMounted(() => {
   const target = detail.reviewResult.thumbnailMeta;
   let r_width = left.value.$el.offsetWidth - 52;
   let h = (target.heightInPixel / target.widthInPixel) * r_width;
-  if (h > left.value.$el.offsetHeight) {
-    h = left.value.$el.offsetHeight - 152;
+  if (h > window.screen.height) {
+    h = window.screen.height - 252;
   }
   image_data.value = {
     height: h,

+ 3 - 2
src/view/allMedia/videoProcessing/detail.vue

@@ -82,6 +82,7 @@
                   <span>{{ `${p.subTypeDesc}` }}</span>
                 </div>
                 <img
+                  v-if="p.evidence.thumbnail"
                   :src="p.evidence.thumbnail"
                   style="
                     width: 100%;
@@ -164,8 +165,8 @@ const image_data = ref({
 function canplay() {
   let r_width = left.value.$el.offsetWidth - 52;
   let h = (video.value.videoWidth / video.value.videoHeight) * r_width;
-  if (h > left.value.$el.offsetHeight) {
-    h = left.value.$el.offsetHeight - 252;
+  if (h > window.screen.height) {
+    h = window.screen.height - 252;
   }
   image_data.value = {
     height: h,