From 2176f520aaace5e18383d078548bcf799e59c09b Mon Sep 17 00:00:00 2001 From: wanghz_crm_cmi Date: Sun, 2 Apr 2023 23:58:15 +0800 Subject: [PATCH] feat --- app/components/home.tsx | 35 ++++++++++++++++++----------------- app/store/app.ts | 2 +- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 7ed35dfbe..414583a3a 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -307,18 +307,19 @@ export function Chat(props: { }, ] : [], - ).concat( - userInput.length > 0 && config.sendPreviewBubble - ? [ - { - role: "user", - content: userInput, - date: new Date().toLocaleString(), - preview: false, - }, - ] - : [], - ); + ) + .concat( + userInput.length > 0 && config.sendPreviewBubble + ? [ + { + role: "user", + content: userInput, + date: new Date().toLocaleString(), + preview: false, + }, + ] + : [], + ); // auto scroll useLayoutEffect(() => { @@ -631,10 +632,10 @@ export function Home() { className={styles.sidebar + ` ${showSideBar && styles["sidebar-show"]}`} >
-
ChatGPT Next
-
+
聊天机器人
+ {/*
Build your own AI assistant. -
+
*/}
@@ -671,11 +672,11 @@ export function Home() { }} />
-
+ {/*
} /> -
+
*/}