perf: optimization final phase - defineAsyncComponent for modals

This commit is contained in:
2026-02-26 12:55:03 -05:00
parent 2dd3384882
commit fc489c4f46
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, ref, watch, nextTick, onUnmounted, computed } from "vue";
import { onMounted, ref, watch, nextTick, onUnmounted, computed, defineAsyncComponent } from "vue";
import { useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
import { useRouteStore } from "@/stores/route";
@ -11,7 +11,7 @@ import { analyticsService } from "@/services/analyticsService";
import { getImageUrl } from "@/utils/imageUrl";
import { useDirectionsRoute } from "@/composables/useDirectionsRoute";
import BusStopInfoModal from "@/components/BusStopInfoModal.vue";
const BusStopInfoModal = defineAsyncComponent(() => import("@/components/BusStopInfoModal.vue"));
import type { BusStop } from '@/types'
const router = useRouter();