|
@@ -425,6 +425,10 @@ export const endTime = computed(() => {
|
|
|
export const play = ref(false);
|
|
|
watch(play, (_a, _b, onCleanup) => {
|
|
|
play.value ? animationGroup?.play() : animationGroup?.pause();
|
|
|
+ if (!play.value) return;
|
|
|
+ if (currentTime.value >= endTime.value) {
|
|
|
+ currentTime.value = 0
|
|
|
+ }
|
|
|
onCleanup(
|
|
|
watchEffect(() => {
|
|
|
if (currentTime.value >= endTime.value) {
|