From cf08bf67cf2f5ee4a6f2949884226332ac71df85 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 10 Jun 2026 22:50:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=BC=A9=E6=94=BE=E6=98=BE=E7=A4=BA,?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=B7=B1=E5=BA=A6=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEimg=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- frontend/src/views/user/ProductDetail.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/views/user/ProductDetail.vue b/frontend/src/views/user/ProductDetail.vue index 85f85ec..4cd94b5 100644 --- a/frontend/src/views/user/ProductDetail.vue +++ b/frontend/src/views/user/ProductDetail.vue @@ -151,6 +151,13 @@ function buyNow() { align-items: center; justify-content: center; cursor: pointer; + + // 确保图片按比例缩放显示 + :deep(.el-image__inner) { + max-width: 100%; + max-height: 100%; + object-fit: contain; + } } .image-placeholder {