From c4a8cd4acdddefc81d1770664ad41fce26bd7145 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 9 Sep 2024 12:22:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84stt=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/application-workflow/index.vue | 3 +++ ui/src/workflow/nodes/base-node/index.vue | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/views/application-workflow/index.vue b/ui/src/views/application-workflow/index.vue index 55b05a34b4..bd5d77a049 100644 --- a/ui/src/views/application-workflow/index.vue +++ b/ui/src/views/application-workflow/index.vue @@ -218,6 +218,7 @@ const clickShowDebug = () => { try { workflow.is_valid() detail.value = { + ...detail.value, type: 'WORK_FLOW', ...workflow.get_base_node()?.properties.node_data, work_flow: getGraphData() @@ -285,6 +286,8 @@ function getDetail() { v['properties']['noRender'] = true }) detail.value = res.data + detail.value.stt_model_id = res.data.stt_model + detail.value.tts_model_id = res.data.tts_model saveTime.value = res.data?.update_time }) } diff --git a/ui/src/workflow/nodes/base-node/index.vue b/ui/src/workflow/nodes/base-node/index.vue index ee2b528e0a..3aa4421fb4 100644 --- a/ui/src/workflow/nodes/base-node/index.vue +++ b/ui/src/workflow/nodes/base-node/index.vue @@ -217,6 +217,7 @@ import { ref, computed, onMounted } from 'vue' import { relatedObject } from '@/utils/utils' import useStore from '@/stores' import applicationApi from '@/api/application' +import type { Provider } from '@/api/type/model' const { model } = useStore() const { @@ -227,7 +228,7 @@ const props = defineProps<{ nodeModel: any }>() const sttModelOptions = ref(null) const ttsModelOptions = ref(null) -const providerOptions = ref(null) +const providerOptions = ref>([]) const form = { name: '',