wenhongquan 3 年 前
コミット
721965c29a
1 ファイル変更9 行追加2 行削除
  1. 9 2
      src/views/IncidentManagementReport/index.tsx

+ 9 - 2
src/views/IncidentManagementReport/index.tsx

@@ -198,7 +198,10 @@ export default defineComponent({
           },
         );
       } else {
-        alert('浏览器不支持地理定位。');
+        Notify({
+          type: 'danger',
+          message: 'App不支持地理定位。',
+        });
       }
     };
 
@@ -207,7 +210,11 @@ export default defineComponent({
       commonStore.getGlobalDict('zhdd_incident_type');
       commonStore.getGlobalDict('zhdd_org_upload');
 
-      getLocation();
+      try {
+        getLocation();
+
+      } catch (E) { }
+      
 
       route.query.id && (await store.getIncidentItem(route.query.id as string));
       addr.value = detail?.value?.addr ?? '';