Explorar o código

去除正在搜索中 去除切片 默认打开你还可以提问其他问题

sunsheng hai 4 meses
pai
achega
9a373a4765
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      app/components/chat.tsx

+ 5 - 5
app/components/chat.tsx

@@ -679,7 +679,7 @@ export function ChatActions(props: {
     }
   }, [props.isClickStop])
 
-  const [activeKey, setActiveKey] = useState('0'); // 控制手风琴是否展示
+  const [activeKey, setActiveKey] = useState('1'); // 控制手风琴是否展示
 
   return (
     <div className={styles["chat-input-actions"]}>
@@ -1170,7 +1170,6 @@ function _Chat() {
     const params = new URLSearchParams(search);
     // const chatMode = params.get('chatMode');
     const chatMode = 'LOCAL';
-
     if (chatMode) {
       setSelectedFruit(chatMode as "ONLINE" | "LOCAL");
       // const appId = params.get('appId');
@@ -2076,7 +2075,8 @@ function _Chat() {
                       </div>
                     )} */}
                         </div>
-                        {
+                        {/* 文档搜索成功和切片暂时注释掉 */}
+                        {/* {
                           showTyping ?
                             <div className={styles["chat-message-status"]}>
                               {isUser ? '' : '正在查询文档…'}
@@ -2090,9 +2090,9 @@ function _Chat() {
                                 </div>
                               }
                             </div>
-                        }
+                        } */}
                         {
-                          message.sliceInfo &&
+                          false&&message.sliceInfo &&
                           <div style={{ marginTop: 10 }}>
                             <Collapse
                               bordered={false}