From 03275469c2b9fd23992974f2d744de62a6fa9fdf Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 20 Sep 2024 17:45:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=97=A0id=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ai-chat/LogOperationButton.vue | 7 +-- ui/src/components/ai-chat/OperationButton.vue | 59 +++++++++++-------- ui/src/components/ai-chat/index.vue | 2 +- ui/src/views/document/index.vue | 2 +- .../paragraph/component/ParagraphDialog.vue | 8 +-- .../template/component/CreateModelDialog.vue | 12 +--- ui/src/views/template/component/EditModel.vue | 12 +--- 7 files changed, 48 insertions(+), 54 deletions(-) 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 @@