Use prefetch for MapView chunk
This commit is contained in:
parent
e824404b69
commit
fc513cddac
@ -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);
|
||||
});
|
||||
|
@ -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,
|
||||
}),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user