Ver Fonte

add <Text>

visuddhinanda há 6 meses atrás
pai
commit
2bd50db602

+ 3 - 2
dashboard-v4/dashboard/src/components/chat/UserMessage.tsx

@@ -1,10 +1,11 @@
 import React, { useState } from "react";
-import { Button, Input } from "antd";
+import { Button, Input, Typography } from "antd";
 import { EditOutlined, CopyOutlined } from "@ant-design/icons";
 import { UserMessageProps } from "../../types/chat";
 import { VersionSwitcher } from "./VersionSwitcher";
 
 const { TextArea } = Input;
+const { Text } = Typography;
 
 const UserMessage = ({
   session,
@@ -53,7 +54,7 @@ const UserMessage = ({
           </div>
         ) : (
           <div className="message-text">
-            {message.content}
+            <Text>{message.content}</Text>
             {message.save_status === "pending" && (
               <span className="status-indicator pending">发送中...</span>
             )}