diff --git a/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue index 5d20c5b3a97..a0c2fced5d5 100644 --- a/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue @@ -27,7 +27,7 @@ - + @@ -154,6 +154,17 @@ function editMark(data: any) { const audioPlayerStatus = ref(false) +const copy = (data: any) => { + try { + const text = data.answer_text_list + .map((item: Array) => item.map((i) => i.content).join('\n')) + .join('\n\n') + copyClick(removeFormRander(text)) + } catch (e: any) { + copyClick(removeFormRander(data?.answer_text.trim())) + } +} + function markdownToPlainText(md: string) { return ( md