From d21f32900060768f621d2591d0420ec7b8e050bb Mon Sep 17 00:00:00 2001 From: du <13220750630.163.com> Date: 星期二, 03 六月 2025 16:38:35 +0800 Subject: [PATCH] 声音模型 --- easegen-front/src/views/chooseTemplate/index.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue index d8f9558..624c7ce 100644 --- a/easegen-front/src/views/chooseTemplate/index.vue +++ b/easegen-front/src/views/chooseTemplate/index.vue @@ -179,13 +179,13 @@ <!-- 鑳屾櫙(蹇呮樉绀�) --> <el-image - v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==0" + v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==false" class="background1" :src="selectPPT.pictureUrl" style="z-index: 2" /> <el-image - v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==1" + v-show="selectPPT.pictureUrl && selectPPT.digitalHuman.show==true" class="background1" :src="selectPPT.pictureUrl" style="z-index: 1" @@ -227,7 +227,7 @@ </Vue3DraggableResizable> <!-- 鏁板瓧浜� --> <Vue3DraggableResizable - v-if="selectPPT.digitalHuman.show==1 && selectPPT.digitalHuman?.host" + v-if="selectPPT.digitalHuman.show==true && selectPPT.digitalHuman?.host" :parent="false" :lockAspectRatio="true" :minW="350" @@ -266,7 +266,7 @@ </el-icon> </Vue3DraggableResizable> <Vue3DraggableResizable - v-if="selectPPT.digitalHuman.show==0 && selectPPT.digitalHuman?.host" + v-if="selectPPT.digitalHuman.show==false && selectPPT.digitalHuman?.host" :parent="false" :lockAspectRatio="true" :minW="350" @@ -833,6 +833,7 @@ const applyAllTemplate = ref(false) const templateSelection=ref({}) const handleTemplateSelection = (template) => { + console.log(template) dialogVisible1.value=true templateSelection.value=template console.log(templateSelection.value) @@ -1040,6 +1041,7 @@ } const chooseTemplate = (currTemplate) => { + console.log(currTemplate) selectTemplate.value = cloneDeep(currTemplate) templates.value.forEach((item) => { item.isActive = false @@ -1580,7 +1582,7 @@ const applyTemplate = (ppt = null) => { const template = selectTemplate.value - console.log('template', template) + console.log('template', selectTemplate.value) const pptList = applyAllTemplate.value ? PPTArr.value : [selectPPT.value] pptList.forEach((item) => { @@ -1674,7 +1676,8 @@ const params = { text: truncatedText, humanId: selectPPT.value.digitalHuman?.host?.id || null, - voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, + // voiceId: audioSelectData.value == undefined ? null : audioSelectData.value[0].id, + voiceId: 'zh-CN', } try { -- Gitblit v1.9.3