Commit 19523dd2 authored by youjie's avatar youjie

no message

parent b1bbcab6
......@@ -111,6 +111,14 @@ export default {
settings: 'Settings',
logout: 'Sign Out',
},
// Email Validation
emailValidation: {
checking: 'Checking email...',
available: 'Email available',
exists: 'This email is already registered',
invalidFormat: 'Invalid email format',
checkFailed: 'Email validation failed, please try again later',
},
// HTTP error status codes
httpError: {
400: 'Bad request',
......
......@@ -111,6 +111,14 @@ export default {
settings: 'Cài đặt',
logout: 'Đăng xuất',
},
// Xác thực email
emailValidation: {
checking: 'Đang kiểm tra email...',
available: 'Email khả dụng',
exists: 'Email này đã được đăng ký',
invalidFormat: 'Định dạng email không chính xác',
checkFailed: 'Xác thực email thất bại, vui lòng thử lại sau',
},
// Mã lỗi HTTP
httpError: {
400: 'Yêu cầu không hợp lệ',
......
......@@ -111,6 +111,13 @@ export default {
settings: '設定',
logout: '登出',
},
emailValidation: {
checking: '正在檢查郵箱...',
available: '郵箱可用',
exists: '該郵箱已被註冊',
invalidFormat: '郵箱格式不正確',
checkFailed: '郵箱驗證失敗,請稍後重試',
},
// HTTP 錯誤狀態碼
httpError: {
400: '請求參數錯誤',
......
......@@ -32,7 +32,7 @@
<a-avatar class="cursor-pointer flex-shrink-0 !w-[35px] !h-[35px]">
<img class="w-full h-full cursor-pointer"
alt="avatar"
:src="userStore.userInfo.avatar || systemConfigStore.config?.logo || 'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp'"
:src="userStore.memberData.photo || systemConfigStore.config?.logo || 'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp'"
/>
</a-avatar>
<template #content>
......
......@@ -53,6 +53,13 @@ export const useUserStore = defineStore('user', {
},
actions: {
/**
* 设置用户头像
* @param photo 头像URL
*/
setPhoto(photo: string){
this.memberData.photo = photo
},
/**
* 账号密码登录 - 使用新的 UserService
* @param email 账号(邮箱)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment