浏览代码

fix: ui in chat openning statement (#1094)

crazywoola 1 年之前
父节点
当前提交
487e699021
共有 4 个文件被更改,包括 139 次插入406 次删除
  1. 1 1
      web/app/components/app/chat/index.tsx
  2. 1 1
      web/app/components/share/chat/index.tsx
  3. 0 1
      web/app/components/share/chatbot/index.tsx
  4. 137 403
      web/yarn.lock

+ 1 - 1
web/app/components/app/chat/index.tsx

@@ -56,7 +56,7 @@ export type IChatProps = {
 const Chat: FC<IChatProps> = ({
   configElem,
   chatList,
-  controlChatUpdateAllConversation,
+
   feedbackDisabled = false,
   isHideFeedbackEdit = false,
   isHideSendInput = false,

+ 1 - 1
web/app/components/share/chat/index.tsx

@@ -318,7 +318,7 @@ const Main: FC<IMainProps> = ({
       content: caculatedIntroduction,
       isAnswer: true,
       feedbackDisabled: true,
-      isOpeningStatement: isPublicVersion,
+      isOpeningStatement: true,
     }
     if (caculatedIntroduction)
       return [openstatement]

+ 0 - 1
web/app/components/share/chatbot/index.tsx

@@ -238,7 +238,6 @@ const Main: FC<IMainProps> = ({
     if (caculatedIntroduction && caculatedPromptVariables)
       caculatedIntroduction = replaceStringWithValues(caculatedIntroduction, promptConfig?.prompt_variables || [], caculatedPromptVariables)
 
-    // console.log(isPublicVersion)
     const openstatement = {
       id: `${Date.now()}`,
       content: caculatedIntroduction,

文件差异内容过多而无法显示
+ 137 - 403
web/yarn.lock


部分文件因为文件数量过多而无法显示