代码优化

This commit is contained in:
BianLzhaoMin 2025-01-16 09:56:57 +08:00
parent 84cc080530
commit c2e96f8deb
1 changed files with 10 additions and 13 deletions

View File

@ -279,19 +279,16 @@ getSwiperListData()
<!-- 轮播图 -->
<div class="swiper-img">
<el-carousel :interval="5000" arrow="always" style="height: 100%">
<el-carousel-item
v-for="(item, index) in swiperList"
:key="index"
style="height: 100%"
v-show="item.delFlag == 0"
>
<el-image
style="width: 100%; height: 100%; cursor: pointer"
:src="item.slidePicture"
fit="cover"
@click="onClickSwiper(item)"
/>
</el-carousel-item>
<template v-for="(item, index) in swiperList" :key="index">
<el-carousel-item style="height: 100%" v-if="item.delFlag == 0">
<el-image
style="width: 100%; height: 100%; cursor: pointer"
:src="item.slidePicture"
fit="cover"
@click="onClickSwiper(item)"
/>
</el-carousel-item>
</template>
</el-carousel>
</div>
</div>