wenhongquan il y a 3 ans
Parent
commit
9f86d8bc7a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/views/IncidentManagementReport/index.tsx

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

@@ -117,8 +117,8 @@ export default defineComponent({
           (position: GeolocationPosition) => {
             console.log(position.coords.longitude);
             console.log(position.coords.latitude);
-            var location = '118.28,33.97';
-            // var location = `${position.coords.longitude},${position.coords.latitude}`;
+            // var location = '118.28,33.97';
+            var location = `${position.coords.longitude},${position.coords.latitude}`;
              fetch(
                `https://minedata.cn/service/lbs/reverse/v1/regeo?location=${location}&key=${window.key}`,
              )