JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:超链接默认新页面跳转
openJiuwen-bot90c6833f6b74
diff --git a/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsx b/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsxindex 98fe24b3db..f98c303f95 100644--- a/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsx+++ b/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsx@@ -198,7 +198,21 @@ export function MessageItem({ message, autoSpeak = false }: MessageItemProps) {{isUser ? (<span className="whitespace-pre-wrap">{content}</span>) : (- <ReactMarkdown remarkPlugins={[remarkGfm]}>+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ components={{+ a: ({ node, href, children, ...props }) => (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ {...props}+ >+ {children}+ </a>+ )+ }}+ >{content}</ReactMarkdown>)}