Merge pull request #131 from chaoXxxxx/master

fix: 修复动画执行bug
This commit is contained in:
LLzzZZ 2022-07-01 16:49:57 +08:00 committed by GitHub
commit 73f9957fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,12 +119,11 @@ export default () => {
playedSlidesMinIndex.value = slideIndex.value playedSlidesMinIndex.value = slideIndex.value
} }
else animationIndex.value = formatedAnimations.value.length else animationIndex.value = formatedAnimations.value.length
inAnimation.value = false
} }
else { else {
throttleMassage('已经是第一页了') throttleMassage('已经是第一页了')
inAnimation.value = false
} }
inAnimation.value = false
} }
const execNext = () => { const execNext = () => {
if (formatedAnimations.value.length && animationIndex.value < formatedAnimations.value.length) { if (formatedAnimations.value.length && animationIndex.value < formatedAnimations.value.length) {
@ -233,4 +232,4 @@ export default () => {
execNext, execNext,
animationIndex, animationIndex,
} }
} }