Browse Source

未获取授权不阻止逻辑

xiaohaizhao 1 year ago
parent
commit
5edcaf0334
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/tool.js

+ 2 - 2
utils/tool.js

@@ -11,7 +11,6 @@ function mount() {
                     highAccuracyExpireTime: 8000,
                     isHighAccuracy: true, */
                 uni.getLocation({
-
                     success: res => {
                         console.log("获取定位", res)
                         if (isReverseGeocoder) {
@@ -62,9 +61,10 @@ function mount() {
                                         })
                                     } else {
                                         uni.showToast({
-                                            title: "已拒绝地理位置授权",
+                                            title: "未获取到地理位置授权",
                                             icon: "none",
                                         })
+                                        resolve(true);
                                     }
                                 }
                             })