feat(home): add 'to' parameter to outro
This commit is contained in:
@@ -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);
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user