feat: use new async component definition
- fix see: https://v3.vuejs.org/guide/migration/async-components.html - put async editor in separate component
This commit is contained in:
parent
51a740f53c
commit
421ff9a188
10 changed files with 38 additions and 74 deletions
|
|
@ -30,8 +30,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import LoadingComponent from '@/components/misc/loading.vue'
|
||||
import ErrorComponent from '@/components/misc/error.vue'
|
||||
import AsyncEditor from '@/components/input/AsyncEditor'
|
||||
|
||||
import {LOADING} from '@/store/mutation-types'
|
||||
import {mapState} from 'vuex'
|
||||
|
|
@ -39,12 +38,7 @@ import {mapState} from 'vuex'
|
|||
export default {
|
||||
name: 'description',
|
||||
components: {
|
||||
editor: () => ({
|
||||
component: import('@/components/input/editor.vue'),
|
||||
loading: LoadingComponent,
|
||||
error: ErrorComponent,
|
||||
timeout: 60000,
|
||||
}),
|
||||
editor: AsyncEditor,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
Reference in a new issue