Pre Merge pull request !42 from 尘墨/main

This commit is contained in:
尘墨 2025-06-13 07:21:11 +00:00 committed by Gitee
commit 814b1ea935
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 11 additions and 2 deletions

View File

@ -138,8 +138,8 @@ watch(
:avatar
:menus
:text="userStore.userInfo?.realName"
description="ann.vben@gmail.com"
tag-text="Pro"
:description="userStore.userInfo?.email"
:tag-text="userStore.userInfo?.username"
@logout="handleLogout"
/>
</template>

View File

@ -118,6 +118,7 @@ export const useAuthStore = defineStore('auth', () => {
roles,
userId: user.userId,
username: user.userName,
email: user.email ?? '',
};
userStore.setUserInfo(userInfo);
/**

View File

@ -12,6 +12,10 @@ interface BasicUserInfo {
*
*/
avatar: string;
/**
*
*/
email: string;
/**
*
*/

View File

@ -6,6 +6,10 @@ interface BasicUserInfo {
*
*/
avatar: string;
/**
*
*/
email: string;
/**
*
*/