优化:优化表单校验相关代码,拆分安全设置组件,完善登录页面 slogan 和插图

This commit is contained in:
2023-01-11 21:24:57 +08:00
parent a08fd7773e
commit 73fadb8315
24 changed files with 465 additions and 338 deletions

View File

@@ -0,0 +1,32 @@
<template>
<a-list-item-meta>
<template #avatar>
<a-typography-paragraph>
{{ $t('userCenter.securitySettings.updateEmail.label.email') }}
</a-typography-paragraph>
</template>
<template #description>
<div class="content">
<a-typography-paragraph v-if="loginStore.email">
{{ $t('userCenter.securitySettings.updateEmail.placeholder.success.email') }}{{ loginStore.email }}
</a-typography-paragraph>
<a-typography-paragraph v-else class="tip">
{{ $t('userCenter.securitySettings.updateEmail.placeholder.error.email') }}
</a-typography-paragraph>
</div>
<div class="operation">
<a-link>
{{ $t('userCenter.securitySettings.button.update') }}
</a-link>
</div>
</template>
</a-list-item-meta>
</template>
<script lang="ts" setup>
import { useLoginStore } from '@/store';
const loginStore = useLoginStore();
</script>
<style scoped lang="less"></style>