wenhongquan 3 lat temu
rodzic
commit
af59231637
1 zmienionych plików z 13 dodań i 10 usunięć
  1. 13 10
      src/views/IncidentManagementReport/index.tsx

+ 13 - 10
src/views/IncidentManagementReport/index.tsx

@@ -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 ?? '';