refactor: relocate constants in screen stores
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { LazyGalleryModal } from "#components";
|
||||
import type { InternalApi } from "nitropack/types";
|
||||
import { useElementSize } from "@vueuse/core";
|
||||
import { promiseTimeout, useElementSize } from "@vueuse/core";
|
||||
import gsap from "gsap";
|
||||
|
||||
const { data: images } = await useAsyncData(
|
||||
@@ -156,7 +156,7 @@ const animateOutro = async () => {
|
||||
|
||||
typeText(descriptionText, description.value, DESCRIPTION_DURATION, true, {
|
||||
onComplete: async () => {
|
||||
await sleep(ANIMATION_SLEEP * 1000);
|
||||
await promiseTimeout(ANIMATION_SLEEP * 1000);
|
||||
galleryStore.shouldAnimateOutro = true;
|
||||
router.push("/");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user