From 611e8f7f1986e96980712a083d06b7cfe45f928c Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期三, 16 十月 2024 11:03:58 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- admin/src/components/common/UploadAvatarImage.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/src/components/common/UploadAvatarImage.vue b/admin/src/components/common/UploadAvatarImage.vue index d541ed6..72f91b9 100644 --- a/admin/src/components/common/UploadAvatarImage.vue +++ b/admin/src/components/common/UploadAvatarImage.vue @@ -2,7 +2,7 @@ <div> <el-upload class="avatar-uploader" - accept=".png,.jpg" + accept=".png,.jpg,.jpeg" :style="customStyle" :action="uploadImgUrl" :data="uploadData" @@ -30,7 +30,7 @@ tipsLabel: '', customStyle: { type: String, - default: 'width: 90px; height: 90px;' + default: 'width: 90px; max-height: 90px;' }, uploadData: Object }, @@ -92,8 +92,8 @@ text-align: center; } .avatar { - width: 100% !important; - height: auto !important; + width: 90px; + max-height: 90px; display: block; } .tips-style { -- Gitblit v1.9.3