2021-10-07 21:37:02 -07:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-01-27 18:39:49 -08:00
|
|
|
{{ i18n.ts.processing }}
|
2021-10-07 21:37:02 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-15 18:02:27 -08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted } from 'vue';
|
2021-11-11 09:02:25 -08:00
|
|
|
import * as os from '@/os';
|
|
|
|
import * as symbols from '@/symbols';
|
|
|
|
import { login } from '@/account';
|
2022-01-15 18:02:27 -08:00
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
code: string;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
await os.alert({
|
|
|
|
type: 'info',
|
2022-01-27 18:39:49 -08:00
|
|
|
text: i18n.t('clickToFinishEmailVerification', { ok: i18n.ts.gotIt }),
|
2022-01-15 18:02:27 -08:00
|
|
|
});
|
|
|
|
const res = await os.apiWithDialog('signup-pending', {
|
|
|
|
code: props.code,
|
|
|
|
});
|
|
|
|
login(res.i, '/');
|
|
|
|
});
|
2021-10-07 21:37:02 -07:00
|
|
|
|
2022-01-15 18:02:27 -08:00
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: {
|
2022-01-27 18:39:49 -08:00
|
|
|
title: i18n.ts.signup,
|
2022-01-15 18:02:27 -08:00
|
|
|
icon: 'fas fa-user',
|
2021-10-07 21:37:02 -07:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|