Unverified Commit da5782df authored by Joel's avatar Joel Committed by GitHub

fix: mobile not auto show generation res (#544)

parent 9af0da44
......@@ -96,6 +96,8 @@ const TextGeneration: FC<IMainProps> = ({
setControlSend(Date.now())
// eslint-disable-next-line @typescript-eslint/no-use-before-define
setAllTaskList([]) // clear batch task running status
// eslint-disable-next-line @typescript-eslint/no-use-before-define
showResSidebar()
}
const [allTaskList, setAllTaskList, getLatestTaskList] = useGetState<Task[]>([])
......@@ -227,6 +229,8 @@ const TextGeneration: FC<IMainProps> = ({
setControlSend(Date.now())
// clear run once task status
setControlStopResponding(Date.now())
// eslint-disable-next-line @typescript-eslint/no-use-before-define
showResSidebar()
}
const handleCompleted = (taskId?: number, isSuccess?: boolean) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment