From 3f99a1b9e4bc101f0d95e43f64c47b3f548b71db Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Wed, 16 Sep 2026 11:14:53 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AAI=E5=9B=9E=E7=AD=94=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=80=9D=E8=80=83...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/ai-service.js | 8 ++++++++ lang-bundle.json | 2 +- lang/en-us/ai-chat/index.js | 2 +- lang/zh-cn/ai-chat/index.js | 2 +- pages_tool/ai-chat/ai-chat-message.vue | 6 ++++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/common/js/ai-service.js b/common/js/ai-service.js index e54b1d7..2584cba 100644 --- a/common/js/ai-service.js +++ b/common/js/ai-service.js @@ -783,6 +783,14 @@ export default { async: false, }); console.log('[AI Service] getServiceConfig response:', JSON.stringify(response)); + // 媒体上传需要 config_uuid (后端校验 config_uid/config_uuid 不能为空)。 + // 此前从未写入过该缓存, 导致上传表单里 config_uuid 恒为空。 + // 这里从 info 响应中提取并持久化, 兼容多种字段名。 + const cfg = response && response.data; + if (cfg && typeof cfg === 'object') { + const uuid = cfg.config_uuid || cfg.config_uid || cfg.uuid || (cfg.info && (cfg.info.config_uuid || cfg.info.uuid)) || ''; + if (uuid) uni.setStorageSync('current_config_uuid', uuid); + } return response.data; } catch (error) { console.error('[AI Service] getServiceConfig error:', error); diff --git a/lang-bundle.json b/lang-bundle.json index 15fa5dd..abae112 100644 --- a/lang-bundle.json +++ b/lang-bundle.json @@ -2642,7 +2642,7 @@ "loadMoreHistory": "加载更多历史消息", "loadingHistory": "加载历史消息中...", "aiThinking": "AI正在思考", - "receivingReply": "正在接收回复", + "receivingReply": "思考中", "aiThinkingStatus1": "AI正在思考", "aiThinkingStatus2": "AI正在分析", "aiThinkingStatus3": "AI正在检索", diff --git a/lang/en-us/ai-chat/index.js b/lang/en-us/ai-chat/index.js index 61b6573..2ac9917 100644 --- a/lang/en-us/ai-chat/index.js +++ b/lang/en-us/ai-chat/index.js @@ -23,7 +23,7 @@ export const lang = { loadMoreHistory: 'Load more history', loadingHistory: 'Loading history...', aiThinking: 'AI is thinking', - receivingReply: 'Receiving reply', + receivingReply: 'Thinking', aiThinkingStatus1: 'AI is thinking', aiThinkingStatus2: 'AI is analyzing', aiThinkingStatus3: 'AI is searching', diff --git a/lang/zh-cn/ai-chat/index.js b/lang/zh-cn/ai-chat/index.js index 6eb1e2a..63e3119 100644 --- a/lang/zh-cn/ai-chat/index.js +++ b/lang/zh-cn/ai-chat/index.js @@ -23,7 +23,7 @@ export const lang = { loadMoreHistory: '加载更多历史消息', loadingHistory: '加载历史消息中...', aiThinking: 'AI正在思考', - receivingReply: '正在接收回复', + receivingReply: '思考中', aiThinkingStatus1: 'AI正在思考', aiThinkingStatus2: 'AI正在分析', aiThinkingStatus3: 'AI正在检索', diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index a95a85d..d3e3d73 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -1115,7 +1115,8 @@ async sendStreamMessage(userMessage, attachments = []) { } else { targetMsg = this.messages[loadingIdx] this._stopLoadingTextRotation(targetMsg) - targetMsg.loadingText = this.$lang('ai-chat.index.receivingReply') + // 固定文案, 不走 $lang: 远端语言覆写会覆盖本地 lang 文件, 导致改了 lang/zh-cn 也不生效 + targetMsg.loadingText = '思考中' // 进入流式接收状态: 让思考面板在收到 thought 事件时自动展开并显示"思考中..." this.$set(targetMsg, 'isStreaming', true) if (!targetMsg.thoughtsText) this.$set(targetMsg, 'thoughtsText', '') @@ -3169,7 +3170,8 @@ _handleStreamError(msg) { gap: 12rpx; .typing-dots { - display: flex; + /* 隐藏三个圆点动画 */ + display: none !important; align-items: center; .dot {