소스 검색

预估时长及图片检测2

dev
congzc 1 년 전
부모
커밋
a63399d5cd
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. +11
    -3
      src/views/createVideo/index.vue

+ 11
- 3
src/views/createVideo/index.vue 파일 보기

@@ -343,7 +343,7 @@
{{ item.name }}
<span
style="float: right; cursor: pointer"
@click="ListenVoices(item.url)"
@click.stop="ListenVoices(item.url)"
>🔊</span
>
</div>
@@ -1440,7 +1440,9 @@ async function saveOrUpdate(index, isSaveVideo) {
createLoading.value = false;
return;
}
if (!audioData.value) {
if (!audioData.value && !afterSaveAudioId.value) {
console.log(audioData.value);
console.log(afterSaveAudioId.value);
ElMessage.error(
lanChange.value == "zh-cn"
? `请选择音频文件`
@@ -1452,7 +1454,12 @@ async function saveOrUpdate(index, isSaveVideo) {
try {
const res1 = await uploadAudio(isSaveVideo); // 上传音频
} catch (error) {
ElMessage.error(error);
// ElMessage.error(error);
ElMessage.error(
lanChange.value == "zh-cn"
? `生成失败,请重新选择音频`
: `Generation failed, please re-select the audio`
);
createLoading.value = false;
}
}
@@ -1543,6 +1550,7 @@ async function findById(findId) {
afterSaveAudioId.value = res.data.voiceMaterialId; //保存音频后得到的id
imgUrl.value = res.data.personPhotoUrl; //图片回显
audioUrl.value = res.data.voiceMaterialUrl; // mp3回显

musicItemAction.value = res.data.musicId; //音乐id回显
language.value = res.data.voiceInfo ? res.data.voiceInfo.languageId : null;



불러오는 중...
취소
저장