瀏覽代碼

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
                   type='primary'
                   className='mr-2 text-sm font-medium'
-                  onClick={handleStartChat}
+                  onClick={() => {
+                    setCollapsed(true)
+                    handleStartChat()
+                  }}
                 >
                   {t('common.operation.save')}
                 </Button>