2021-10-08 13:37:02 +09:00
|
|
|
<template>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div>
|
|
|
|
{{ i18n.ts.processing }}
|
|
|
|
</div>
|
2021-10-08 13:37:02 +09:00
|
|
|
</template>
|
|
|
|
|
2022-01-16 11:02:27 +09:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 09:01:42 +09:00
|
|
|
import { onMounted } from "vue";
|
|
|
|
import * as os from "@/os";
|
|
|
|
import { login } from "@/account";
|
|
|
|
import { i18n } from "@/i18n";
|
|
|
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
2022-01-16 11:02:27 +09:00
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
code: string;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
await os.alert({
|
2023-04-08 09:01:42 +09:00
|
|
|
type: "info",
|
|
|
|
text: i18n.t("clickToFinishEmailVerification", { ok: i18n.ts.gotIt }),
|
2022-01-16 11:02:27 +09:00
|
|
|
});
|
2023-04-08 09:01:42 +09:00
|
|
|
const res = await os.apiWithDialog("signup-pending", {
|
2022-01-16 11:02:27 +09:00
|
|
|
code: props.code,
|
|
|
|
});
|
2023-04-08 09:01:42 +09:00
|
|
|
login(res.i, "/");
|
2022-01-16 11:02:27 +09:00
|
|
|
});
|
2021-10-08 13:37:02 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.signup,
|
2023-04-08 09:01:42 +09:00
|
|
|
icon: "ph-user ph-bold ph-lg",
|
2021-10-08 13:37:02 +09:00
|
|
|
});
|
|
|
|
</script>
|