Parcourir la source

首页实时更新方法

lizaixun il y a 5 ans
Parent
commit
89ddfb0e5b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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();