From 85b3e4db47a6c13e42c264708bd2ef270faebd49 Mon Sep 17 00:00:00 2001
From: jing <1683105490@qq.com>
Date: Thu, 24 Sep 2026 13:59:24 +0800
Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AAI=E5=9B=9E=E7=AD=94=E7=9A=84?=
=?UTF-8?q?=E6=96=87=E5=AD=97=E5=8F=AA=E6=9C=89=E7=BD=91=E5=9D=80=E6=98=AF?=
=?UTF-8?q?=E8=93=9D=E8=89=B2=EF=BC=8C=E5=85=B6=E4=BB=96=E5=9B=9E=E7=AD=94?=
=?UTF-8?q?=E6=98=AF=E9=BB=91=E8=89=B2=E7=9A=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_tool/ai-chat/ai-chat-message.vue | 28 ++++++++++++++++----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue
index 308ee4d..663f6fc 100644
--- a/pages_tool/ai-chat/ai-chat-message.vue
+++ b/pages_tool/ai-chat/ai-chat-message.vue
@@ -2147,11 +2147,14 @@ _handleStreamError(msg) {
})
// 5) 行内代码 / 加粗 / 斜体 / 删除线 (此时链接已抽离, 不会被误改)
+ // PR-FIX-AI-TEXT-COLOR (2026-09-24): AI 回答统一配色 —— 正文/标题/加粗/行内代码/引用/删除线
+ // 一律黑色(TEXT), 只有"网址/链接"是蓝色(LINK)。
+ // 之前行内代码是粉色(#d63384)、删除线是灰色(#999), 回答里颜色太杂。
t = t
- .replace(/`([^`]+)`/g, '$1')
+ .replace(/`([^`]+)`/g, '$1')
.replace(/\*\*(.+?)\*\*/g, '$1')
- .replace(/\*(.+?)\*/g, '$1')
- .replace(/~~(.+?)~~/g, '$1')
+ .replace(/\*(.+?)\*/g, '$1')
+ .replace(/~~(.+?)~~/g, '$1')
return t
}
@@ -2169,7 +2172,7 @@ _handleStreamError(msg) {
const safe = code.replace(//g, '>')
codeBlocks.push(
`
` +
- `${safe}`
+ `${safe}`
)
return `%%CODEBLOCK_${idx}%%`
})
@@ -2265,7 +2268,7 @@ _handleStreamError(msg) {
const bqMatch = line.match(/^>\s?(.+)$/)
if (bqMatch) {
flushBuf(); out.push(closeList())
- out.push(`${parseInline(bqMatch[1])}`) + out.push(`
${parseInline(bqMatch[1])}`) continue } @@ -3660,16 +3663,18 @@ _handleStreamError(msg) { .markdown-body { line-height: 1.8; font-size: 26rpx; - color: $color-text; + /* PR-FIX-AI-TEXT-COLOR (2026-09-24): 统一配色 —— 正文/加粗/斜体/代码全部黑色, + 只有链接(a)是蓝色; 之前正文是灰蓝($color-text)、代码是蓝灰($color-primary) */ + color: #1a1a1a; strong { font-weight: 600; - color: $color-text; + color: #1a1a1a; } em { font-style: italic; - color: $color-text-light; + color: #1a1a1a; } code { @@ -3678,17 +3683,18 @@ _handleStreamError(msg) { border-radius: $radius-sm; font-family: monospace; font-size: 24rpx; - color: $color-primary; + color: #1a1a1a; } a { - color: $color-primary; + /* 网址/链接: 蓝色 (与 parseMarkdown 里的 LINK 常量保持一致) */ + color: #3a7afe; text-decoration: underline; text-underline-offset: 4rpx; transition: color 0.2s ease; &:hover { - color: #5a7cb0; + color: #2b6cf0; } } }