This commit is contained in:
ThatOneCalculator 2023-04-26 20:10:42 -07:00
parent e048d951fc
commit a47d05dcda
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 4 additions and 1 deletions

View File

@ -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(() => []);