zhengkaixin 3 vuotta sitten
vanhempi
commit
14c0e74170
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pages/index/index.vue

+ 1 - 1
pages/index/index.vue

@@ -22,7 +22,7 @@
 		</u-navbar>
 		
 		<view class="homeWrap">
-			<u-swiper :list="wrapList" @click="clickBanner" :img-mode="'aspectFit'" :name="'picUrl'" height="294" border-radius="24"></u-swiper>
+			<u-swiper  v-if="wrapList.length" :list="wrapList" @click="clickBanner" :img-mode="'aspectFit'" :name="'picUrl'" height="294" border-radius="24"></u-swiper>
 		</view>
 		<view class="homeUser">
 			<view class="homeUser-item"