From e2679208aac3ca297bfdf30215d6c1478470526d Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Sat, 20 Dec 2025 01:05:25 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=B8=B2=E6=9F=93):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?Markdown=E6=B8=B2=E6=9F=93=E5=92=8C=E6=95=B0=E6=8D=AE=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 行内代码简化样式,仅使用等宽字体 - 列表项标记颜色调整为品牌色 - Mock数据更新适配新的模型格式 - 首页模型格式转换逻辑更新 --- src/app/page.tsx | 3 ++- src/components/markdown/MarkdownRenderer.tsx | 8 ++++---- src/data/mock.ts | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8d7b45b..11c436d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -35,7 +35,8 @@ export default function HomePage() { // 转换模型格式 const modelOptions = models.map((m) => ({ id: m.modelId, - name: m.displayName, + name: m.modelId, + displayName: m.displayName, tag: m.supportsThinking ? 'Thinking' : '', })); diff --git a/src/components/markdown/MarkdownRenderer.tsx b/src/components/markdown/MarkdownRenderer.tsx index c5e24f7..191a500 100644 --- a/src/components/markdown/MarkdownRenderer.tsx +++ b/src/components/markdown/MarkdownRenderer.tsx @@ -19,10 +19,10 @@ const markdownComponents = { const isInline = !match && !className; if (isInline) { - // 行内代码 + // 行内代码 - 无特殊样式,仅等宽字体 return ( {children} @@ -81,14 +81,14 @@ const markdownComponents = { // 列表 ul({ children }: { children?: React.ReactNode }) { return ( -