mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
im dumb
This commit is contained in:
parent
3c5fbb7b0b
commit
4ae131cc09
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ import { onMounted } from "vue";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||||
|
import { useRouter } from "@/router";
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
code: string;
|
code: string;
|
||||||
|
@ -22,7 +25,7 @@ onMounted(async () => {
|
||||||
await os.api("verify-email", {
|
await os.api("verify-email", {
|
||||||
code: props.code,
|
code: props.code,
|
||||||
});
|
});
|
||||||
window.location.href = "/";
|
router.push("/");
|
||||||
});
|
});
|
||||||
|
|
||||||
const headerActions = $computed(() => []);
|
const headerActions = $computed(() => []);
|
||||||
|
|
Loading…
Reference in a new issue