mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 12:29:00 +08:00
fix: mobile not auto show generation res (#544)
This commit is contained in:
parent
9af0da4450
commit
da5782df92
@ -96,6 +96,8 @@ const TextGeneration: FC<IMainProps> = ({
|
|||||||
setControlSend(Date.now())
|
setControlSend(Date.now())
|
||||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||||
setAllTaskList([]) // clear batch task running status
|
setAllTaskList([]) // clear batch task running status
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||||
|
showResSidebar()
|
||||||
}
|
}
|
||||||
|
|
||||||
const [allTaskList, setAllTaskList, getLatestTaskList] = useGetState<Task[]>([])
|
const [allTaskList, setAllTaskList, getLatestTaskList] = useGetState<Task[]>([])
|
||||||
@ -227,6 +229,8 @@ const TextGeneration: FC<IMainProps> = ({
|
|||||||
setControlSend(Date.now())
|
setControlSend(Date.now())
|
||||||
// clear run once task status
|
// clear run once task status
|
||||||
setControlStopResponding(Date.now())
|
setControlStopResponding(Date.now())
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||||
|
showResSidebar()
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleCompleted = (taskId?: number, isSuccess?: boolean) => {
|
const handleCompleted = (taskId?: number, isSuccess?: boolean) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user