Browse Source

解决页面一加载全部展示数据处理太多卡死问题

htc 1 week ago
parent
commit
3e0e769f7b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pages/house/index.vue

+ 4 - 3
pages/house/index.vue

@@ -414,14 +414,15 @@
 								this.indexArr.push(F);
 								this.indexHouseBaseIdArr.push(houseBaseId)
 								this.indexHouseNameArr.push(name)
-								this.opens.push(true)
+								this.opens.push(false)
 							} else {
 								this.indexArr.push('');
 								this.indexHouseNameArr.push('')
-								this.opens.push(true)
+								this.opens.push(false)
 							}
 						}
-						this.leftData = res.data.data;
+						this.leftData = res.data.data;
+						if(this.opens.length) this.opens[0] = true;
 					}
 				})
 			},