|
@@ -408,21 +408,24 @@ export default defineComponent({
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ try {
|
|
|
+ api_getuserInfo().then((res) => {
|
|
|
+ try {
|
|
|
+ getLocation();
|
|
|
+ } catch (E) {}
|
|
|
+
|
|
|
+ });
|
|
|
+ } catch (e) {
|
|
|
+ Toast.fail({ message: e + '' });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
commonStore.getGlobalDict('zhdd_incident_level');
|
|
|
commonStore.getGlobalDict('zhdd_incident_type');
|
|
|
commonStore.getGlobalDict('zhdd_org_upload');
|
|
|
|
|
|
- try {
|
|
|
- await api_getuserInfo();
|
|
|
- } catch (e) {
|
|
|
- Toast.fail({ message: e + '' });
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- try {
|
|
|
- getLocation();
|
|
|
- } catch (E) {}
|
|
|
+
|
|
|
|
|
|
route.query.id && (await store.getIncidentItem(route.query.id as string));
|
|
|
addr.value = detail?.value?.addr ?? '';
|