From a47d05dcdaa15bbf371593dfdf0d68abb39fe876 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 ed1016fe77..b5830aec48 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(() => []);