Prechádzať zdrojové kódy

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

ming 2 rokov pred
rodič
commit
53ff2ab776
1 zmenil súbory, kde vykonal 8 pridanie a 4 odobranie
  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() {