feat:增加 user 的 email、username 的展示
parent
880aa37675
commit
1662598488
|
@ -125,13 +125,12 @@ watch(
|
|||
<template>
|
||||
<BasicLayout @clear-preferences-and-logout="handleLogout">
|
||||
<template #user-dropdown>
|
||||
<!-- TODO @芋艿:去掉 ann.vben@gmail.com -->
|
||||
<UserDropdown
|
||||
:avatar
|
||||
:menus
|
||||
:text="userStore.userInfo?.nickname"
|
||||
description="ann.vben@gmail.com"
|
||||
tag-text="Pro"
|
||||
:description="userStore.userInfo?.email"
|
||||
:tag-text="userStore.userInfo?.username"
|
||||
@logout="handleLogout"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
@ -11,13 +11,17 @@ interface BasicUserInfo {
|
|||
*/
|
||||
nickname: string;
|
||||
/**
|
||||
* 用户id
|
||||
* 用户 id
|
||||
*/
|
||||
userId: string;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* 用户邮箱
|
||||
*/
|
||||
email?: string;
|
||||
}
|
||||
|
||||
interface AccessState {
|
||||
|
|
Loading…
Reference in New Issue