submit-map.vue 787 B

1234567891011121314151617181920212223242526272829
  1. <script setup lang="ts">
  2. import { useLoadQuerys } from '@/components/composeabe/LoadQuerys';
  3. import { useGetCurrentLocation } from '../composeabe/GetCurrentLocation';
  4. import AppCofig from '@/common/config/AppCofig';
  5. import LightMap from '../components/LightMap.vue';
  6. const { querys } = useLoadQuerys({
  7. latitude: AppCofig.defaultLonLat[1],
  8. longitude: AppCofig.defaultLonLat[0],
  9. city: ''
  10. }, async (querys) => {
  11. currentLocation.setCurrentLocationWithCity(querys.city);
  12. });
  13. const currentLocation = useGetCurrentLocation({
  14. onCityChanged: (city) => {},
  15. });
  16. </script>
  17. <template>
  18. <LightMap
  19. full
  20. :city="querys.city"
  21. :lonlat="currentLocation.currentLonlat.value"
  22. :isLightMode="true"
  23. @getCurrentLonlat="currentLocation.getCurrentExactLocation"
  24. />
  25. </template>