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:
12
src/components/input/AsyncEditor.js
Normal file
12
src/components/input/AsyncEditor.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
import ErrorComponent from '@/components/misc/error.vue'
|
||||
import LoadingComponent from '@/components/misc/loading.vue'
|
||||
|
||||
const Editor = () => import('@/components/input/editor.vue')
|
||||
|
||||
export default defineAsyncComponent({
|
||||
loader: Editor,
|
||||
loadingComponent: LoadingComponent,
|
||||
errorComponent: ErrorComponent,
|
||||
timeout: 60000,
|
||||
})
|
Reference in New Issue
Block a user