refactor: Load Editor as need to reduce bundle size

pull/947/head
freedomlang 2019-12-05 17:40:32 +08:00 committed by Henrique Dias
parent ae893abc5f
commit 060a7ad80c
1 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ import NotFound from './errors/404'
import InternalError from './errors/500'
import Preview from '@/components/files/Preview'
import Listing from '@/components/files/Listing'
import Editor from '@/components/files/Editor'
import { files as api } from '@/api'
import { mapGetters, mapState, mapMutations } from 'vuex'
@ -48,7 +47,7 @@ export default {
InternalError,
Preview,
Listing,
Editor
Editor: () => import('@/components/files/Editor')
},
computed: {
...mapGetters([