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', '长按文字拖动两端手柄,可自由选择复制范围') }} +