Chore: refactor embedded chatbot (#5125)

This commit is contained in:
KVOJJJin 2024-06-14 08:42:41 +08:00 • committed by GitHub
commit 4289f17be2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1051 additions and 20 deletions

View file

@ -3,7 +3,7 @@ import type { FC } from 'react'
import React, { useEffect } from 'react'
import cn from 'classnames'
import type { IMainProps } from '@/app/components/share/chat'
import Main from '@/app/components/share/chatbot'
import EmbeddedChatbot from '@/app/components/base/chat/embedded-chatbot'
import Loading from '@/app/components/base/loading'
import { fetchSystemFeatures } from '@/service/share'
import LogoSite from '@/app/components/base/logo/logo-site'
@ -77,7 +77,7 @@ const Chatbot: FC<IMainProps> = () => {
</div>
</div>
)
: <Main />
: <EmbeddedChatbot />
}
</>
)}