Browse Source

首页实时更新方法

lizaixun 4 years atrás
parent
commit
89ddfb0e5b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/index/Index.vue

+ 3 - 1
pages/index/Index.vue

@@ -545,7 +545,9 @@
 		},
 		created: function() {
 			this.timeNow();
-			this.viewUserid();
+			this.$nextTick(function(){
+				this.viewUserid();
+			})
 			this.monitoringAuthority();
 			this.judgeWindfield();
 			this.address = this.dataprocessing.getWindPowerStationName();