fix: restore birth-time rectification entry

This commit is contained in:
Jesse_Chen
2026-07-22 10:50:23 +08:00
parent 5e0c1933a3
commit f5c57efeba
8 changed files with 164 additions and 38 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import { ChatMessageContent } from "@/components/chat-message-content";
import type { ChatMessageView } from "@/lib/chat-message-view";
import { consultationReportMarkdown, downloadMarkdownReport } from "@/lib/consultation-report-export";
export function AgentAvatar() {
return <span className="agent-avatar" aria-hidden="true" />;
@@ -24,7 +23,7 @@ export function ChatMessageRow({ message }: { readonly message: ChatMessageView
{message.role === "assistant" ? (
message.state === "thinking"
? <div className="thinking"><i /><i /><i /></div>
: <><ChatMessageContent text={message.text} /><button className="report-download-button" type="button" onClick={() => downloadMarkdownReport("Jyotisha 咨询报告", consultationReportMarkdown({ title: "Jyotisha 咨询报告", messages: [message] }))}></button></>
: <ChatMessageContent text={message.text} />
) : <p>{message.text}</p>}
</div>
</div>