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 + } } }) }