1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-15 15:18:08 +09:00
hotomoe/packages/client/src/pages/signup-complete.vue

40 lines
689 B
Vue
Raw Normal View History

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