瀏覽代碼

perf: 优化控制台报错信息,不影响业务逻辑

xyh 5 月之前
父節點
當前提交
ce77918a7f
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/pages/index/details.vue
  2. 1 1
      src/pages/index/index.vue
  3. 1 1
      src/pages/my/history.vue

+ 1 - 1
src/pages/index/details.vue

@@ -115,7 +115,7 @@
 			<!-- <view class="closebox" @click="closeDialog"></view> -->
 			<view class="dialog_content">
 				<view class="box">
-					<view class="lists" v-for="(item,index) in projects" :index="index">
+					<view class="lists" v-for="(item,index) in projects" :key="index">
 						<view class="imgs">
 							<image :src="$globalData.publicUrl + item.cCover" mode="" />
 						</view>

+ 1 - 1
src/pages/index/index.vue

@@ -4,7 +4,7 @@
       <u-swiper :list="list"></u-swiper>
     </view>
     <view class="tag">
-      <view class="item" v-for="item in tagList">
+      <view class="item" v-for="(item,index) in tagList" :key="index">
         <image src="/static/index/Frame.png" alt="" />
         {{ item.value }}
       </view>

+ 1 - 1
src/pages/my/history.vue

@@ -7,7 +7,7 @@
 				<uni-th>金额(元)</uni-th>
 				<uni-th>状态</uni-th>
 			</uni-tr>
-			<uni-tr v-for="(item, index) in list">
+			<uni-tr v-for="(item, index) in list" :key="index">
 				<uni-td>
 					{{ item.dtCreateTime.slice(0, 10) }}
 					{{ item.dtCreateTime.slice(11, 19) }}