attachment optimization
This commit is contained in:
parent
c6c91ce58b
commit
7686c42748
2 changed files with 12 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import nsfwImage from '../../assets/nsfw.png'
|
||||
import Flash from '../flash/flash.vue'
|
||||
import Popover from '../popover/popover.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
import VideoAttachment from '../video_attachment/video_attachment.vue'
|
||||
|
|
@ -69,9 +69,13 @@ const Attachment = {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
Flash,
|
||||
Flash: defineAsyncComponent(
|
||||
() => import( 'src/components/flash/flash.vue'),
|
||||
),
|
||||
StillImage,
|
||||
VideoAttachment,
|
||||
VideoAttachment: defineAsyncComponent(
|
||||
() => import( 'src/components/video_attachment/video_attachment.vue'),
|
||||
),
|
||||
Popover,
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue