Selaa lähdekoodia

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

zl 1 kuukausi sitten
vanhempi
commit
0c68bc4321

+ 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