mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:29:02 +08:00
fix: webapp answer icon (#9654)
This commit is contained in:
parent
d700abff0a
commit
3ae05a672d
@ -15,6 +15,7 @@ import {
|
|||||||
getUrl,
|
getUrl,
|
||||||
stopChatMessageResponding,
|
stopChatMessageResponding,
|
||||||
} from '@/service/share'
|
} from '@/service/share'
|
||||||
|
import AnswerIcon from '@/app/components/base/answer-icon'
|
||||||
|
|
||||||
const ChatWrapper = () => {
|
const ChatWrapper = () => {
|
||||||
const {
|
const {
|
||||||
@ -87,7 +88,6 @@ const ChatWrapper = () => {
|
|||||||
)
|
)
|
||||||
}, [
|
}, [
|
||||||
chatListRef,
|
chatListRef,
|
||||||
appConfig,
|
|
||||||
currentConversationId,
|
currentConversationId,
|
||||||
currentConversationItem,
|
currentConversationItem,
|
||||||
handleSend,
|
handleSend,
|
||||||
@ -150,6 +150,15 @@ const ChatWrapper = () => {
|
|||||||
isMobile,
|
isMobile,
|
||||||
])
|
])
|
||||||
|
|
||||||
|
const answerIcon = (appData?.site && appData.site.use_icon_as_answer_icon)
|
||||||
|
? <AnswerIcon
|
||||||
|
iconType={appData.site.icon_type}
|
||||||
|
icon={appData.site.icon}
|
||||||
|
background={appData.site.icon_background}
|
||||||
|
imageUrl={appData.site.icon_url}
|
||||||
|
/>
|
||||||
|
: null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className='h-full bg-chatbot-bg overflow-hidden'
|
className='h-full bg-chatbot-bg overflow-hidden'
|
||||||
@ -171,6 +180,7 @@ const ChatWrapper = () => {
|
|||||||
allToolIcons={appMeta?.tool_icons || {}}
|
allToolIcons={appMeta?.tool_icons || {}}
|
||||||
onFeedback={handleFeedback}
|
onFeedback={handleFeedback}
|
||||||
suggestedQuestions={suggestedQuestions}
|
suggestedQuestions={suggestedQuestions}
|
||||||
|
answerIcon={answerIcon}
|
||||||
hideProcessDetail
|
hideProcessDetail
|
||||||
themeBuilder={themeBuilder}
|
themeBuilder={themeBuilder}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user