From 2daaa258a08a9af013f1a2bb6278141e1b6c63b2 Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Fri, 11 Sep 2026 14:43:23 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AAI=E6=99=BA=E8=83=BD=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=A4=8D=E5=88=B6=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang-bundle.json | 4 + lang/en-us/ai-chat/index.js | 12 +- lang/zh-cn/ai-chat/index.js | 4 + pages_tool/ai-chat/ai-chat-message.vue | 395 ++++++++++++++++++++++++- 4 files changed, 402 insertions(+), 13 deletions(-) diff --git a/lang-bundle.json b/lang-bundle.json index 5a26840..7322e33 100644 --- a/lang-bundle.json +++ b/lang-bundle.json @@ -2652,6 +2652,10 @@ "noContentToCopy": "无可复制的内容", "copySuccess": "已复制", "copySelected": "已复制选中内容", + "selectTextToCopy": "选取文字复制", + "selectedText": "已选文字", + "copyAll": "复制全部", + "selectTextTip": "长按文字拖动两端手柄,可自由选择复制范围", "copyFail": "复制失败", "copyFailWithReason": "复制失败:{reason}", "openingFile": "打开文件中...", diff --git a/lang/en-us/ai-chat/index.js b/lang/en-us/ai-chat/index.js index c3b6939..f41d45d 100644 --- a/lang/en-us/ai-chat/index.js +++ b/lang/en-us/ai-chat/index.js @@ -33,6 +33,10 @@ export const lang = { noContentToCopy: 'No content to copy', copySuccess: 'Copied', copySelected: 'Copied selected content', + selectTextToCopy: 'Select text to copy', + selectedText: 'Selected', + copyAll: 'Copy all', + selectTextTip: 'Long press and drag the handles to choose any range', copyFail: 'Copy failed', copyFailWithReason: 'Copy failed: {reason}', openingFile: 'Opening file...', @@ -136,8 +140,8 @@ export const lang = { logInitNavbarFailed: 'Failed to initialize navigation bar', logChatComponentNotInit: 'Chat component not initialized', logServicerConfigNotLoaded: '[AI Customer Service] servicerConfig not loaded, retrying after 200ms...' - - // ====== AI Agent general copy (customer service is the first agent) ====== - aiAgentDefaultTitle: 'AI Agent', - aiAgentOpenFailed: 'Failed to open AI Agent, please try again later', + + // ====== AI Agent general copy (customer service is the first agent) ====== + aiAgentDefaultTitle: 'AI Agent', + aiAgentOpenFailed: 'Failed to open AI Agent, please try again later', aiAgentNotConfigured: 'This AI Agent is not enabled'} diff --git a/lang/zh-cn/ai-chat/index.js b/lang/zh-cn/ai-chat/index.js index 752f15b..6cb8f12 100644 --- a/lang/zh-cn/ai-chat/index.js +++ b/lang/zh-cn/ai-chat/index.js @@ -33,6 +33,10 @@ export const lang = { noContentToCopy: '无可复制的内容', copySuccess: '已复制', copySelected: '已复制选中内容', + selectTextToCopy: '选取文字复制', + selectedText: '已选文字', + copyAll: '复制全部', + selectTextTip: '长按文字拖动两端手柄,可自由选择复制范围', copyFail: '复制失败', copyFailWithReason: '复制失败:{reason}', openingFile: '打开文件中...', diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 906a77d..c5a0337 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -44,7 +44,11 @@ @touchend="onBubbleTouchEnd" @touchcancel="onBubbleTouchEnd"> - {{ message.content }} + {{ message.content }} @@ -78,7 +82,17 @@ @touchcancel="onBubbleTouchEnd"> + + + {{ _stripMarkdown(message.content) }} + + + @@ -341,6 +355,41 @@ + + + + + + + {{ $lang('ai-chat.index.selectTextToCopy', '选取文字复制') }} + + + {{ $lang('ai-chat.index.selectTextTip', '长按文字拖动两端手柄,可自由选择复制范围') }} +