feat: remove query based routing
This commit is contained in:
@@ -54,15 +54,15 @@ export const useHomeStore = defineStore("home", {
|
||||
);
|
||||
},
|
||||
|
||||
animateOutro(to: "contact" | "projects" | "theme" | "settings" | "alarm") {
|
||||
animateOutro(to: AppScreen) {
|
||||
this.isOutro = true;
|
||||
this.outro.animateTop = to !== "settings";
|
||||
|
||||
const timeline = gsap.timeline({
|
||||
onComplete: () => {
|
||||
this.isOutro = true;
|
||||
const router = useRouter();
|
||||
router.push({ query: { screen: to } });
|
||||
const app = useAppStore();
|
||||
app.navigateTo(to);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user