Skip to content

Commit

Permalink
✨ async load AnnotationSkeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Feb 28, 2022
1 parent f6e2b3d commit 68d9cd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/annotation/Annotation.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<AnnotationSkeleton v-if="!annotationStore.hasVideo"/>
<q-card flat v-else>
<q-card
flat
v-else
>
<KeyframePanel/>
<div class="row justify-center">
<div class="col-12 col-md">
Expand All @@ -19,16 +22,18 @@
</template>

<script setup>
import { defineAsyncComponent } from 'vue'
import ActionTable from '~/pages/annotation/ActionTable.vue'
import CanvasPanel from '~/pages/annotation/CanvasPanel.vue'
import ControlPanel from '~/pages/annotation/ControlPanel.vue'
import { useAnnotationStore } from '~/store/annotation.js'
import { useConfigurationStore } from '~/store/configuration.js'
import { useMainStore } from '~/store/index.js'
import { usePreferenceStore } from '~/store/preference.js'
import AnnotationSkeleton from './AnnotationSkeleton.vue'
import KeyframePanel from './KeyframePanel.vue'
const AnnotationSkeleton = defineAsyncComponent(() => import('./components/AnnotationSkeleton.vue'))
const annotationStore = useAnnotationStore()
const configurationStore = useConfigurationStore()
const preferenceStore = usePreferenceStore()
Expand Down
File renamed without changes.

0 comments on commit 68d9cd3

Please sign in to comment.