Skip to content

Commit 9a6d29b

Browse files
committed
fix: avatar
1 parent 1fe950a commit 9a6d29b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Cropper/src/CropperAvatar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="user-info-head" @click="open()">
3-
<img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
4-
<img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
3+
<el-avatar v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
4+
<el-avatar v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
55
<el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
66
{{ btnText ? btnText : t('cropper.selectImage') }}
77
</el-button>

src/layout/components/UserInfo/src/UserInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const toDocument = () => {
5353
<template>
5454
<ElDropdown class="custom-hover" :class="prefixCls" trigger="click">
5555
<div class="flex items-center">
56-
<img :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
56+
<ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
5757
<span class="<lg:hidden text-14px pl-[5px] text-[var(--top-header-text-color)]">
5858
{{ userName }}
5959
</span>

0 commit comments

Comments
 (0)