zhengkaixin 3 년 전
부모
커밋
14c0e74170
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"