修改右上角显示用户名称

This commit is contained in:
qinjie 2021-09-10 15:55:38 +08:00
parent 2bfebe75ff
commit e06df98ce9
1 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
<template>
<a-dropdown v-if="currentUser && currentUser.userName" placement="bottomRight">
<a-dropdown v-if="currentUser && currentUser.name" placement="bottomRight">
<span class="ant-pro-account-avatar">
<a-avatar size="small" src="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png" class="antd-pro-global-header-index-avatar" />
<span>{{ currentUser.userName }}</span>
<span>{{ currentUser.name }}</span>
</span>
<template v-slot:overlay>
<a-menu class="ant-pro-drop-down menu" :selected-keys="[]">