|
@@ -545,12 +545,10 @@ export default defineComponent({
|
|
|
item.isAnimation ? 800 : 0
|
|
|
)
|
|
|
animationTimer.value = setTimeout(() => {
|
|
|
- effectIndex.value = effectIndex.value + 1
|
|
|
- if (effectIndex.value >= effects.length - 1) {
|
|
|
- effectIndex.value = 0
|
|
|
- }
|
|
|
+ const index = effectIndex.value + 1
|
|
|
+ effectIndex.value = index >= effects.length - 1 ? 0 : index
|
|
|
// effectIndex.value = Math.round(Math.random() * (effects.length - 1))
|
|
|
- }, 1000)
|
|
|
+ }, 1500)
|
|
|
}
|
|
|
|
|
|
/** 是否有转场动画 */
|