[Client] Use dynamic import to reduce bundle size
This commit is contained in:
parent
fb8af53751
commit
6d67cd07a0
4 changed files with 12 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<mk-window ref="window" width="500px" height="560px" :popout-url="popout" @closed="destroyDom">
|
||||
<span slot="header" :class="$style.header"><fa icon="gamepad"/>%i18n:@game%</span>
|
||||
<mk-reversi :class="$style.content" @gamed="g => game = g"/>
|
||||
<x-reversi :class="$style.content" @gamed="g => game = g"/>
|
||||
</mk-window>
|
||||
</template>
|
||||
|
||||
|
|
@ -10,6 +10,9 @@ import Vue from 'vue';
|
|||
import { url } from '../../../config';
|
||||
|
||||
export default Vue.extend({
|
||||
components: {
|
||||
XReversi: () => import('../../../common/views/components/games/reversi/reversi.vue')
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
game: null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue