From 4ae131cc09b26baa897d37e7c0e4dc1c10ac26e0 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 26 Apr 2023 20:10:42 -0700 Subject: [PATCH] im dumb --- packages/client/src/pages/verify-email.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/verify-email.vue b/packages/client/src/pages/verify-email.vue index ed1016fe7..b5830aec4 100644 --- a/packages/client/src/pages/verify-email.vue +++ b/packages/client/src/pages/verify-email.vue @@ -9,6 +9,9 @@ import { onMounted } from "vue"; import * as os from "@/os"; import { i18n } from "@/i18n"; import { definePageMetadata } from "@/scripts/page-metadata"; +import { useRouter } from "@/router"; + +const router = useRouter(); const props = defineProps<{ code: string; @@ -22,7 +25,7 @@ onMounted(async () => { await os.api("verify-email", { code: props.code, }); - window.location.href = "/"; + router.push("/"); }); const headerActions = $computed(() => []);