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