任一存 2 vuotta sitten
vanhempi
commit
d30baf6ae1
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      src/views/LongImage.vue

+ 4 - 2
src/views/LongImage.vue

@@ -159,7 +159,6 @@ const globalProperties = instance.appContext.app.config.globalProperties
 
 const itemW = computed(() => globalProperties.$isMobile || window.innerWidth < 1400 ? 156 : 130)
 
-
 const isShowDir = ref(false)
 const isShowGuide = ref(false)
 const isLongImageVideo = ref(true)
@@ -167,7 +166,10 @@ const isNeedToBofang = ref(true)
 const isShowSkip = ref(false)
 
 const onVideoCanPlayThrough = () => {
-  video$.value && video$.value.play()
+  if (video$.value) {
+    video$.value.play()
+    isNeedToBofang.value = false
+  }
 }
 
 const onSkipClick = () => {