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

@ -1,7 +1,7 @@
<template>
<div class="user-info-head" @click="open()">
<img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
<img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
<el-avatar v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
<el-avatar v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
<el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
{{ btnText ? btnText : t('cropper.selectImage') }}
</el-button>