瀏覽代碼

bug处理

zhengkaixin 2 年之前
父節點
當前提交
6b5a705af1
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 => {