From d4f9ac9f3429fdd570d216035f3243545887c3a7 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 3 Dec 2024 14:44:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A2=E9=98=9F?= =?UTF-8?q?=E6=88=90=E5=91=98=E5=8B=BE=E9=80=89=E7=AE=A1=E7=90=86=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E5=8B=BE=E9=80=89=E6=9F=A5=E7=9C=8B(#1664)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/component/answer-content/index.vue | 5 ++++- .../components/ai-chat/component/operation-button/index.vue | 2 ++ ui/src/components/ai-chat/index.vue | 2 +- ui/src/views/team/component/PermissionSetting.vue | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index a0f1ee0d4..ec4f13f2b 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -36,7 +36,8 @@ () +const emit = defineEmits(['update:chatRecord']) + const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => { if (type === 'old') { add_answer_text_list(props.chatRecord.answer_text_list) diff --git a/ui/src/components/ai-chat/component/operation-button/index.vue b/ui/src/components/ai-chat/component/operation-button/index.vue index eff2b5a91..1026fb695 100644 --- a/ui/src/components/ai-chat/component/operation-button/index.vue +++ b/ui/src/components/ai-chat/component/operation-button/index.vue @@ -3,6 +3,7 @@ void regenerationChart: (chat_record: any) => void }>() +const emit = defineEmits(['update:chatRecord']) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index e04ab70e4..72a138753 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -23,7 +23,7 @@ { if (item.id === row.id) { item.operate[Name] = e + if (Name === TeamEnum.MANAGE && e) { + item.operate[TeamEnum.USE] = true + } } }) }