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