feat(home): add 'to' parameter to outro

This commit is contained in:
2025-11-17 00:35:00 +01:00
parent 909eb1e7e8
commit 5e2d1b88d6
3 changed files with 11 additions and 86 deletions

View File

@@ -51,7 +51,7 @@ export const useHomeStore = defineStore("home", {
);
},
animateOutro() {
animateOutro(to?: string) {
this.isOutro = true;
const duration = 0.4;
@@ -71,6 +71,7 @@ export const useHomeStore = defineStore("home", {
ease: "none",
onComplete: () => {
this.isOutro = true;
if (to) navigateTo(to);
},
},
);