Performance improvements

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-10-05 12:13:19 +02:00
parent 0cbe0b8fad
commit 456e987af8
25 changed files with 75 additions and 206 deletions

View File

@@ -70,7 +70,7 @@
<script lang="ts" setup>
import { Address, IAddress } from "@/types/address.model";
import { RoutingTransportationType, RoutingType } from "@/types/enums";
import { computed } from "vue";
import { computed, defineAsyncComponent } from "vue";
const RoutingParamType = {
[RoutingType.OPENSTREETMAP]: {
@@ -87,7 +87,9 @@ const RoutingParamType = {
},
};
const MapLeaflet = import("@/components/LeafletMap.vue");
const MapLeaflet = defineAsyncComponent(
() => import("@/components/LeafletMap.vue")
);
const props = defineProps<{
address: IAddress;