fix: avatar

(cherry picked from commit 9a6d29b295)
This commit is contained in:
xingyu
2023-09-11 16:54:34 +08:00
committed by shizhong
parent 3630ff4e9b
commit 0b7593fbd4
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const toDocument = () => {
<template>
<ElDropdown class="custom-hover" :class="prefixCls" trigger="click">
<div class="flex items-center">
<img :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
<ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
<span class="<lg:hidden text-14px pl-[5px] text-[var(--top-header-text-color)]">
{{ userName }}
</span>