浏览代码

fix: the behavior of save action in opening config panel (#2736)

crazywoola 1 年之前
父节点
当前提交
9440d7fe88
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      web/app/components/base/chat/chat-with-history/config-panel/index.tsx

+ 4 - 1
web/app/components/base/chat/chat-with-history/config-panel/index.tsx

@@ -95,7 +95,10 @@ const ConfigPanel = () => {
                 <Button
                 <Button
                   type='primary'
                   type='primary'
                   className='mr-2 text-sm font-medium'
                   className='mr-2 text-sm font-medium'
-                  onClick={handleStartChat}
+                  onClick={() => {
+                    setCollapsed(true)
+                    handleStartChat()
+                  }}
                 >
                 >
                   {t('common.operation.save')}
                   {t('common.operation.save')}
                 </Button>
                 </Button>