|
|
|
|
@ -39,7 +39,7 @@ const props = defineProps({ |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const cidQuery = useCidReq() |
|
|
|
|
const {isFile: utilsIsFile, isImage, isVideo} = useFileUtils() |
|
|
|
|
const {isFile: utilsIsFile, isImage, isVideo, isAudio} = useFileUtils() |
|
|
|
|
|
|
|
|
|
const dataType = computed(() => { |
|
|
|
|
if (!utilsIsFile(props.data)) { |
|
|
|
|
@ -52,6 +52,9 @@ const dataType = computed(() => { |
|
|
|
|
if (isVideo(props.data)) { |
|
|
|
|
return 'video' |
|
|
|
|
} |
|
|
|
|
if (isAudio(props.data)) { |
|
|
|
|
return 'video' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 'iframe'; |
|
|
|
|
}) |
|
|
|
|
|