mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 04:00:31 +00:00
20 lines
453 B
Vue
20 lines
453 B
Vue
<template>
|
|
<audio controls width="100%" height="100%">
|
|
<source :src="url" :type="htmlAudioType" />
|
|
{{ $t('g.audioFailedToLoad') }}
|
|
</audio>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
|
|
import type { ResultItemImpl } from '@/stores/queueStore'
|
|
|
|
const { result } = defineProps<{
|
|
result: ResultItemImpl
|
|
}>()
|
|
|
|
const url = computed(() => result.url)
|
|
const htmlAudioType = computed(() => result.htmlAudioType)
|
|
</script>
|