From e0dd9aa7edffb345efc5e8e3de634c920ffe7fe4 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Thu, 21 May 2026 17:06:31 +0800 Subject: [PATCH] =?UTF-8?q?Refactor(=E9=A6=96=E9=A1=B5):=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=E5=8F=AA=E7=94=A8=E4=BA=8E=E5=B7=A6=E4=B8=8A?= =?UTF-8?q?=E8=A7=92=E6=98=BE=E7=A4=BA=E4=B9=8B=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 9bb2c98..9122bf2 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -716,6 +716,7 @@ export default { console.timeEnd() console.log('^^^^^^^^^^^^^^^^获取定位开始') console.time() + this.getPageData() this.getLocationData() }, // 定位失败,重新唤起定位授权 @@ -729,7 +730,7 @@ export default { const cityName = uni.getStorageSync('locationCityName') if (cityName) { this.cityName = cityName - this.getPageData() + // this.getPageData() } this.isLocating = true getLocationPromise().then(mapData => { @@ -742,16 +743,16 @@ export default { if (resCityName !== this.cityName) { this.cityName = address.city uni.setStorageSync('locationCityName', this.cityName) - this.getPageData() + // this.getPageData() } this.isLocating = false }) } else { this.isLocating = false - this.getPageData() + // this.getPageData() } }).catch(() => { - this.getPageData() + // this.getPageData() }) }, getPageData() {