1
0

Add more prefetching of components

This commit is contained in:
kolaente
2020-07-27 19:53:19 +02:00
parent bc7e7dd865
commit b1b5398c56
17 changed files with 199 additions and 32 deletions

View File

@ -22,10 +22,10 @@
</template>
<script>
import multiselect from 'vue-multiselect'
import NamespaceService from '../../services/namespace'
import NamespaceModel from '../../models/namespace'
import LoadingComponent from '../misc/loading'
import ErrorComponent from '../misc/error'
export default {
name: 'namespace-search',
@ -37,7 +37,12 @@
}
},
components: {
multiselect,
multiselect: () => ({
component: import(/* webpackPrefetch: true *//* webpackChunkName: "multiselect" */ 'vue-multiselect'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 60000,
}),
},
created() {
this.namespaceService = new NamespaceService()