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