mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-22 00:29:53 +08:00
46 lines
861 B
Vue
46 lines
861 B
Vue
<script setup>
|
|
import { onMounted, ref } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
import { useGlobalState } from '../../store'
|
|
import Login from '../common/Login.vue'
|
|
|
|
const { userJwt, userSettings, } = useGlobalState()
|
|
|
|
const { t } = useI18n({
|
|
messages: {
|
|
en: {
|
|
logout: 'Logout',
|
|
},
|
|
zh: {
|
|
logout: '退出登录',
|
|
}
|
|
}
|
|
});
|
|
|
|
const fetchData = async () => {
|
|
}
|
|
|
|
onMounted(async () => {
|
|
await fetchData()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="center" v-if="userSettings.user_email">
|
|
<n-card :bordered="false" embedded style="max-width: 600px;">
|
|
<Login />
|
|
</n-card>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.center {
|
|
display: flex;
|
|
text-align: center;
|
|
place-items: center;
|
|
justify-content: center;
|
|
}
|
|
</style>
|