+
+
+
欢迎 {{ useUserStore().userName }}
-
-
-
-
+
+
+
+
+ {{ toChinese(key) }}
+
+
+
+ {{ value }}
+
+
+
+
diff --git a/app/stores/user.ts b/app/stores/user.ts
index 7e85991..c01539c 100644
--- a/app/stores/user.ts
+++ b/app/stores/user.ts
@@ -4,6 +4,7 @@ export interface UserInfo {
userEmail: string;
userAvatar: string;
userAmount: string;
+ userBirthday: string;
lastGetTime: Date;
}
export interface UserState extends UserInfo {
@@ -17,6 +18,7 @@ export const useUserStore = defineStore('User', {
userEmail: '',
userAvatar: '',
userAmount: '',
+ userBirthday: '',
lastGetTime: new Date(),
}),
actions: {
@@ -30,6 +32,7 @@ export const useUserStore = defineStore('User', {
this.userEmail = res.data.userEmail;
this.userAvatar = res.data.userAvatar;
this.userAmount = '500';
+ this.userBirthday = res.data.userBirthday;
this.lastGetTime = new Date();
} catch (error) {
console.error('Error fetching user info:', error);
diff --git a/public/avatar.jpg b/public/avatar.jpg
deleted file mode 100644
index f15766f..0000000
Binary files a/public/avatar.jpg and /dev/null differ