Merge pull request !42 from 尘墨/main
@ -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>
@ -118,6 +118,7 @@ export const useAuthStore = defineStore('auth', () => {
roles,
userId: user.userId,
username: user.userName,
email: user.email ?? '',
};
userStore.setUserInfo(userInfo);
/**
@ -12,6 +12,10 @@ interface BasicUserInfo {
* 头像
*/
avatar: string;
* 邮箱
email: string;
* 用户权限
@ -6,6 +6,10 @@ interface BasicUserInfo {