Commit 19523dd2 authored by youjie's avatar youjie

no message

parent b1bbcab6
...@@ -111,6 +111,14 @@ export default { ...@@ -111,6 +111,14 @@ export default {
settings: 'Settings', settings: 'Settings',
logout: 'Sign Out', 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 // HTTP error status codes
httpError: { httpError: {
400: 'Bad request', 400: 'Bad request',
......
...@@ -111,6 +111,14 @@ export default { ...@@ -111,6 +111,14 @@ export default {
settings: 'Cài đặt', settings: 'Cài đặt',
logout: 'Đăng xuấ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 // Mã lỗi HTTP
httpError: { httpError: {
400: 'Yêu cầu không hợp lệ', 400: 'Yêu cầu không hợp lệ',
......
...@@ -111,6 +111,13 @@ export default { ...@@ -111,6 +111,13 @@ export default {
settings: '設定', settings: '設定',
logout: '登出', logout: '登出',
}, },
emailValidation: {
checking: '正在檢查郵箱...',
available: '郵箱可用',
exists: '該郵箱已被註冊',
invalidFormat: '郵箱格式不正確',
checkFailed: '郵箱驗證失敗,請稍後重試',
},
// HTTP 錯誤狀態碼 // HTTP 錯誤狀態碼
httpError: { httpError: {
400: '請求參數錯誤', 400: '請求參數錯誤',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<a-avatar class="cursor-pointer flex-shrink-0 !w-[35px] !h-[35px]"> <a-avatar class="cursor-pointer flex-shrink-0 !w-[35px] !h-[35px]">
<img class="w-full h-full cursor-pointer" <img class="w-full h-full cursor-pointer"
alt="avatar" 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> </a-avatar>
<template #content> <template #content>
......
...@@ -53,6 +53,13 @@ export const useUserStore = defineStore('user', { ...@@ -53,6 +53,13 @@ export const useUserStore = defineStore('user', {
}, },
actions: { actions: {
/**
* 设置用户头像
* @param photo 头像URL
*/
setPhoto(photo: string){
this.memberData.photo = photo
},
/** /**
* 账号密码登录 - 使用新的 UserService * 账号密码登录 - 使用新的 UserService
* @param email 账号(邮箱) * @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