浏览代码

feat: 前2种嵌入方式都需要不点击按钮直接进入对话窗口

zl 1 月之前
父节点
当前提交
0c68bc4321
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      web/app/components/base/chat/embedded-chatbot/config-panel/index.tsx

+ 4 - 0
web/app/components/base/chat/embedded-chatbot/config-panel/index.tsx

@@ -26,6 +26,10 @@ const ConfigPanel = () => {
   const site = appData?.site
   const themeBuilder = useThemeContext()
 
+  setTimeout(() => {
+    handleStartChat()
+  })
+
   return (
     <div className='flex flex-col max-h-[80%] w-full max-w-[720px]'>
       <div