소스 검색

去掉警告

bobo 3 년 전
부모
커밋
ad54a13d0e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pages/welfareMall/index/index.wxml

+ 1 - 1
pages/welfareMall/index/index.wxml

@@ -11,7 +11,7 @@
 
     </swiper>
     <view class="dots">
-      <block wx:for="{{bannerList}}" wx:key>
+      <block wx:for="{{bannerList}}" wx:key="index">
         <view class="dot{{index == currentSwiper ? ' active_dot' : ''}}"></view>
       </block>
     </view>