|
|
@@ -12,7 +12,7 @@
|
|
|
<div class="photoSty">
|
|
|
<el-avatar
|
|
|
:src="getPhoto(personInfoData.photo)"
|
|
|
- fit="fit"
|
|
|
+ class="center-avatar"
|
|
|
@error="errorHandler"
|
|
|
>
|
|
|
<img src="/images/common/default_user_image.jpg" />
|
|
|
@@ -488,6 +488,12 @@ export default {
|
|
|
width: 14vh;
|
|
|
border-radius: 100%;
|
|
|
}
|
|
|
+ .center-avatar ::v-deep img {
|
|
|
+ object-fit: contain; /* 保持比例完整显示 */
|
|
|
+ object-position: center; /* 居中 */
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
.contentSty {
|
|
|
height: 100%;
|