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