diff --git a/ui/src/components/ai-chat/LogOperationButton.vue b/ui/src/components/ai-chat/LogOperationButton.vue index d715f1c91..4925c255c 100644 --- a/ui/src/components/ai-chat/LogOperationButton.vue +++ b/ui/src/components/ai-chat/LogOperationButton.vue @@ -12,7 +12,7 @@ - + @@ -65,10 +65,9 @@ import { useRoute } from 'vue-router' const route = useRoute() const { - params: { id }, + params: { id } } = route as any - const props = defineProps({ data: { type: Object, @@ -118,7 +117,7 @@ const playAnswerText = (text: string) => { return } applicationApi - .postTextToSpeech(id || props.applicationId as string, { text: text }, loading) + .postTextToSpeech(id || (props.applicationId as string), { text: text }, loading) .then((res: any) => { // 假设我们有一个 MP3 文件的字节数组 // 创建 Blob 对象 diff --git a/ui/src/components/ai-chat/OperationButton.vue b/ui/src/components/ai-chat/OperationButton.vue index 1fec26d1a..651b69414 100644 --- a/ui/src/components/ai-chat/OperationButton.vue +++ b/ui/src/components/ai-chat/OperationButton.vue @@ -8,11 +8,16 @@ - - + + - + @@ -78,14 +83,14 @@ - + diff --git a/ui/src/views/template/component/CreateModelDialog.vue b/ui/src/views/template/component/CreateModelDialog.vue index f8d3d11f9..8dcb65367 100644 --- a/ui/src/views/template/component/CreateModelDialog.vue +++ b/ui/src/views/template/component/CreateModelDialog.vue @@ -37,7 +37,7 @@