Browse Source

修改首页图表加载-生命周期

ming 2 năm trước cách đây
mục cha
commit
53ff2ab776
1 tập tin đã thay đổi với 8 bổ sung4 xóa
  1. 8 4
      pages/index/index.vue

+ 8 - 4
pages/index/index.vue

@@ -177,12 +177,9 @@
 			// }
 
 			
-			this.indicator=[] 
-		},
-		onShow:function(){
-		
 			this.indicator=[] 
 			
+			
 			// 首页数据渲染
 			if(uni.getStorageSync('token')){
 				this.getSearchList();
@@ -218,6 +215,13 @@
 				})
 			}
 			this.status = true
+			
+			
+		},
+		onShow:function(){
+		
+			// this.indicator=[] 
+			
 		},
 		methods: {
 			async init() {