sync:获取商品图片实时高度判断条件修改 4ac6f6c0d3

pull/132/MERGE
YunaiV 2025-04-27 21:52:27 +08:00
parent b62f2ccd21
commit 5dfa496998
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@
const goodsPriceCard = data[0];
defaultImgWidth.value = data[0].width;
if (props.data.image_wh) {
if (props.data.image_wh && Number(props.data.image_wh.w)) {
totalHeight =
(goodsPriceCard.width / props.data.image_wh.w) * props.data.image_wh.h +
goodsPriceCard.height;