Explorar o código

Merge branch 'kajian_bo_yunjiaolian' into jenkins

liushengqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
4d5e4f5f84
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/views/coursewarePlay/index.tsx

+ 4 - 2
src/views/coursewarePlay/index.tsx

@@ -546,9 +546,11 @@ export default defineComponent({
       )
       animationTimer.value = setTimeout(() => {
         const index = effectIndex.value + 1
-        effectIndex.value = index >= effects.length - 1 ? 0 : index
+        requestAnimationFrame(() => {
+          effectIndex.value = index >= effects.length - 1 ? 0 : index
+        })
         // effectIndex.value = Math.round(Math.random() * (effects.length - 1))
-      }, 1500)
+      }, 1000)
     }
 
     /** 是否有转场动画 */