mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 00:55:55 +08:00
fix: embeded chat app input (#2159)
This commit is contained in:
parent
48d5628fd4
commit
7bfdca7a53
@ -385,6 +385,7 @@ const Main: FC<IMainProps> = ({
|
||||
const [messageTaskId, setMessageTaskId] = useState('')
|
||||
const [hasStopResponded, setHasStopResponded, getHasStopResponded] = useGetState(false)
|
||||
const [shouldReload, setShouldReload] = useState(false)
|
||||
const [userQuery, setUserQuery] = useState('')
|
||||
const [visionConfig, setVisionConfig] = useState<VisionSettings>({
|
||||
enabled: false,
|
||||
number_limits: 2,
|
||||
@ -622,6 +623,8 @@ const Main: FC<IMainProps> = ({
|
||||
<div className='h-full overflow-y-auto' ref={chatListDomRef}>
|
||||
<Chat
|
||||
chatList={chatList}
|
||||
query={userQuery}
|
||||
onQueryChange={setUserQuery}
|
||||
onSend={handleSend}
|
||||
isHideFeedbackEdit
|
||||
onFeedback={handleFeedback}
|
||||
|
Loading…
x
Reference in New Issue
Block a user