Commit 4de9d616 authored by nick zheng's avatar nick zheng

chore: 数字人对话剔除3D数字人、发布配置更新最新配置

parent 84fb583a
......@@ -67,7 +67,7 @@ function handleClickAll(imageType: ImageType) {
<template>
<NScrollbar class="h-side-bar-content! px-4">
<div v-show="!showAll">
<div class="pb-4">
<!-- <div class="pb-4">
<div class="flex items-center justify-between pb-3 leading-8">
<span>3D數字人</span>
<span class="text-gray cursor-pointer text-xs" @click="handleClickAll(ImageType.THREE_D)">全部</span>
......@@ -80,7 +80,7 @@ function handleClickAll(imageType: ImageType) {
@click="handleClickDigitalImage"
/>
</div>
</div>
</div> -->
<div class="pb-4">
<div class="flex items-center justify-between pb-3 leading-8">
......
......@@ -120,11 +120,15 @@ async function handleSaveDigitalHumanDialogueConfig() {
}
async function handlePublishDigitalHumanDialogue() {
const res = await fetchPublishDigitalHumanDialogue(currentConfigId.value)
if (res.code === 0) {
isShowPublishDialogueModal.value = true
window.$message.success('發佈成功')
const saveConfigResult = await fetchSaveDigitalHumanDialogueConfig(digitalHumanDialogueConfig.value)
if (saveConfigResult.code === 0) {
const res = await fetchPublishDigitalHumanDialogue(currentConfigId.value)
if (res.code === 0) {
isUnSavedDigitalHumanDialogueConfig.value = false
isShowPublishDialogueModal.value = true
window.$message.success('發佈成功')
}
}
}
</script>
......
......@@ -31,6 +31,10 @@ async function handleCreateDigitalHumanDialogue(digitalHumanDialogueForm: Digita
const payload: DigitalHumanDialogueConfig = JSON.parse(JSON.stringify(digitalHumanDialogueStore.$state))
payload.baseInfo.title = digitalHumanDialogueForm.title
payload.baseInfo.pageLayout = digitalHumanDialogueForm.pageLayout
payload.backgroundInfo.backgroundUrl =
digitalHumanDialogueForm.pageLayout === 'vertical'
? 'https://digitalpeople-sit.gz.bcebos.com/share/backgroud/%E5%8C%BB%E5%AD%A61.jpg'
: 'https://digitalpeople-sit.gz.bcebos.com/share/backgroud/%E9%80%9A%E7%94%A8.jpg'
const res = await fetchSaveDigitalHumanDialogueConfig<DigitalHumanDialogueConfig>(payload)
......
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