宋飞扬 11 miesięcy temu
rodzic
commit
7715deb0f9

+ 1 - 1
src/PageMine/myTeam.vue

@@ -11,7 +11,7 @@
         <view class="top-r">></view>
       </view>
       <view class="item-content">
-        <view class="person-item" v-for="item of teamPersonList">
+        <view class="person-item" v-for="item of teamPersonList" :key="item">
           <image class="item-img" :src="item.inviteUserAvatar" mode="aspectFill" />
           <view class="item-name">{{ item.name }}</view>
         </view>

+ 2 - 2
src/PageMine/serviceCenter/index.vue

@@ -9,10 +9,10 @@
         <view class="item-r"> 如何注销账户? </view>
       </view>
     </view> -->
-    <view v-for='item of init_list'>
+    <view v-for='item of init_list' :key="item">
       <view class="title"> {{ item.name }} </view>
       <view class="item-box hote-box" >
-        <view class="item" v-for='(itm,idx) of item.helpList' @click='handlerSkipDetail(itm)'>
+        <view class="item" v-for='(itm,idx) of item.helpList' :key="idx" @click='handlerSkipDetail(itm)'>
           <view class="item-l">
             <img class="img" :src=" itm.icon ? itm.icon : require('@/static/logo.png')" alt="" />
           </view>

+ 1 - 1
src/pages/tabbar/community.vue

@@ -34,7 +34,7 @@
         <view class="item-center">
           <view class="center-text"> {{ item.textContent }} </view>
           <view class="center-img-box">
-            <image v-for="itm of item.resourceVos" class="center-img" :src="itm.resourceKey" @click='reviewImg(itm)'>
+            <image v-for="itm of item.resourceVos" :key="itm" class="center-img" :src="itm.resourceKey" @click='reviewImg(itm)'>
             </image>
           </view>
         </view>

+ 1 - 1
src/pages/tabbar/message.vue

@@ -26,7 +26,7 @@
 
         <!-- 消息通知 -->
         <view v-if="current == 1">
-          <view class="message" @click="notification" v-for="item in 5">
+          <view class="message" @click="notification" v-for="item in 5" :key="item">
             <view class="img">
               <image src="/static/icon/tools.png" style="width: 45px; height: 45px" />
             </view>

+ 1 - 0
src/pagesHome/homeSearch.vue

@@ -49,6 +49,7 @@
         <view
           class="item-box layered"
           v-for="(item, index) of favourite_list"
+          :key="index"
           @click="$Router.push(`/pagesHome/marketer/index?id=${item.id}`)"
         >
           <view class="item-left">