Use prefetch for MapView chunk
This commit is contained in:
parent
e824404b69
commit
fc513cddac
@ -135,7 +135,7 @@ export default {
|
|||||||
this.hasReportError = false;
|
this.hasReportError = false;
|
||||||
},
|
},
|
||||||
exportGPX() {
|
exportGPX() {
|
||||||
import('@/tools/exportGPX' /* webpackChunkName: "MapView" */).then((module) => {
|
import('@/tools/exportGPX' /* webpackChunkName: "MapView", webpackPrefetch: true */).then((module) => {
|
||||||
const activityName = this.$t('misc.activityName');
|
const activityName = this.$t('misc.activityName');
|
||||||
module.default(activityName, this.$store.state.location.gpx);
|
module.default(activityName, this.$store.state.location.gpx);
|
||||||
});
|
});
|
||||||
|
@ -8,7 +8,7 @@ import Loading from '@/views/Loading.vue';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Map: () => ({
|
Map: () => ({
|
||||||
component: import('@/views/Map.vue' /* webpackChunkName: "MapView" */),
|
component: import('@/views/Map.vue' /* webpackChunkName: "MapView", webpackPrefetch: true */),
|
||||||
loading: Loading,
|
loading: Loading,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user