浏览代码

修复详情页面出错

litianbiao 2 年之前
父节点
当前提交
15abe6caec
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      pages/home/index.vue

+ 10 - 2
pages/home/index.vue

@@ -648,8 +648,16 @@ export default {
 						});
 					});
 				}
-				this.$refs.paging.complete(records);
-				this.copyData = uni.$u.deepClone(records);
+				// this.$refs.paging.complete(records);
+				// this.copyData = uni.$u.deepClone(records);
+				
+				var data = this.copyData;
+				for(var i=0;i<records.length;i++){
+					data.push(records[i]);
+				}
+				this.$refs.paging.complete(data);
+				this.copyData = data;
+				console.log('data=', data);
 			});
 		}
 	}