feat(goodsDetail): 当视频url为空时,商品详情主图用于展示

This commit is contained in:
woody 2025-05-19 10:09:32 +08:00
parent e3636f1a3b
commit a1bec668b5
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@
</div>
<div class="details_t">
<!-- 轮播图 -->
<Swiper :mainImgUrls="mainImgUrl" :imgUrlLists="imgUrlList"></Swiper>
<Swiper
:mainImgUrls="mainImgUrl || imgUrlList[0]"
:imgUrlLists="imgUrlList"
></Swiper>
<!-- 商品信息 -->
<div class="details_c">
<div class="dis_flex">