Commit df3e482e authored by nick zheng's avatar nick zheng

chore: 数字人对话调整

parent cc768501
...@@ -59,6 +59,7 @@ watch( ...@@ -59,6 +59,7 @@ watch(
) )
onMounted(() => { onMounted(() => {
currentSelectedAudioType.value = digitalHumanDialogueStore.humanInfo.timebreId ? 'mandarin' : 'cantonese'
getDigitalTimbreList() getDigitalTimbreList()
}) })
...@@ -72,7 +73,7 @@ async function getDigitalTimbreList() { ...@@ -72,7 +73,7 @@ async function getDigitalTimbreList() {
} }
function handleUpdateAudioType(audioType: string) { function handleUpdateAudioType(audioType: string) {
digitalHumanDialogueStore.humanInfo.timebreId = audioType === 'mandarin' ? '5132' : '101019' digitalHumanDialogueStore.humanInfo.timebreId = audioType === 'mandarin' ? '5132' : ''
} }
async function handleSearch(value: string) { async function handleSearch(value: string) {
......
...@@ -16,7 +16,7 @@ const backgroundImageUrl = computed(() => { ...@@ -16,7 +16,7 @@ const backgroundImageUrl = computed(() => {
}) })
const isEmptyPreview = computed(() => { const isEmptyPreview = computed(() => {
return !figureImageUrl.value || !backgroundImageUrl.value return !figureImageUrl.value && !backgroundImageUrl.value
}) })
watch( watch(
...@@ -52,7 +52,7 @@ async function handleGetInfoByFigureId(figureId: string) { ...@@ -52,7 +52,7 @@ async function handleGetInfoByFigureId(figureId: string) {
class="absolute left-0 top-0 h-full w-full object-cover" class="absolute left-0 top-0 h-full w-full object-cover"
/> />
<div class="absolute left-0 top-0 w-1/2"> <div class="absolute bottom-0 left-[5%] w-[320px]">
<img v-show="figureImageUrl" :src="figureImageUrl" alt="數字人" class="h-full w-full" /> <img v-show="figureImageUrl" :src="figureImageUrl" alt="數字人" class="h-full w-full" />
</div> </div>
</div> </div>
......
...@@ -24,7 +24,7 @@ const backgroundImageUrl = computed(() => { ...@@ -24,7 +24,7 @@ const backgroundImageUrl = computed(() => {
}) })
const isEmptyPreview = computed(() => { const isEmptyPreview = computed(() => {
return !figureImageUrl.value || !backgroundImageUrl.value return !figureImageUrl.value && !backgroundImageUrl.value
}) })
async function handleGetInfoByFigureId(figureId: string) { async function handleGetInfoByFigureId(figureId: string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment