zhengkaixin 2 lat temu
rodzic
commit
6b5a705af1
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      pages/index/index.vue

+ 4 - 0
pages/index/index.vue

@@ -1502,6 +1502,9 @@
 				})
 			},
 			getPoint() {
+				if(this.stationList.length!=0){
+					return
+				}
 				WxJsApi.getLocation().then((res) => {
 					
 					this.latitude = parseFloat(res.latitude);
@@ -1513,6 +1516,7 @@
 							title: res
 						})
 					} else {
+						
 						this.searchStationData()
 					}
 				}).catch(error => {