wenhongquan 3 年之前
父节点
当前提交
af59231637
共有 1 个文件被更改,包括 13 次插入10 次删除
  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 ?? '';