Skip to content

Commit a38d229

Browse files
committed
fix: keep end value
1 parent 8620698 commit a38d229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/countup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ let loopCount = 0
7979
const loopAnim = () => {
8080
loopCount++
8181
startAnim(() => {
82-
countUp.value?.reset()
8382
const isTruely = typeof props.loop === 'boolean' && props.loop
8483
if (isTruely || props.loop > loopCount) {
84+
countUp.value?.reset()
8585
loopAnim()
8686
} else {
8787
finished.value = true

0 commit comments

Comments
 (0)