diff --git a/components/aigc/generation/SRTEditor.vue b/components/aigc/generation/SRTEditor.vue index 0209ca0..03b4e66 100644 --- a/components/aigc/generation/SRTEditor.vue +++ b/components/aigc/generation/SRTEditor.vue @@ -27,6 +27,7 @@ const isSaving = ref(false) const rawSrt = ref(null) const subtitles = ref([]) const modified = ref(false) +const isExporting = ref(false) const videoElement = ref(null) @@ -175,7 +176,7 @@ const saveNewSubtitle = () => { } const exportVideo = () => { - isSaving.value = true + isExporting.value = true useVideoSubtitleEmbedding(props.course.video_url, props.course.subtitle_url, { color: subtitleStyleState.color, fontSize: subtitleStyleState.fontSize, @@ -196,7 +197,7 @@ const exportVideo = () => { const { download } = useDownload(blobUrl, 'combined_video.mp4') download() }).finally(() => { - isSaving.value = false + isExporting.value = false }) } @@ -219,7 +220,7 @@ defineExpose({