diff --git a/src/App.vue b/src/App.vue index 4872274..2cc9fd7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -135,7 +135,7 @@ export default { this.hasReportError = false; }, exportGPX() { - import('@/tools/exportGPX' /* webpackChunkName: "MapView" */).then((module) => { + import('@/tools/exportGPX' /* webpackChunkName: "MapView", webpackPrefetch: true */).then((module) => { const activityName = this.$t('misc.activityName'); module.default(activityName, this.$store.state.location.gpx); }); diff --git a/src/views/LazyMap.vue b/src/views/LazyMap.vue index 188852c..5b1a4b3 100644 --- a/src/views/LazyMap.vue +++ b/src/views/LazyMap.vue @@ -8,7 +8,7 @@ import Loading from '@/views/Loading.vue'; export default { components: { Map: () => ({ - component: import('@/views/Map.vue' /* webpackChunkName: "MapView" */), + component: import('@/views/Map.vue' /* webpackChunkName: "MapView", webpackPrefetch: true */), loading: Loading, }), },