mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 13:06:05 +08:00
fix: chat restart (#2488)
This commit is contained in:
parent
5ff6b1da07
commit
eedbe1b770
@ -146,8 +146,9 @@ export const useChat = (
|
|||||||
}, [stopChat, handleResponsing])
|
}, [stopChat, handleResponsing])
|
||||||
|
|
||||||
const handleRestart = useCallback(() => {
|
const handleRestart = useCallback(() => {
|
||||||
handleStop()
|
|
||||||
connversationId.current = ''
|
connversationId.current = ''
|
||||||
|
taskIdRef.current = ''
|
||||||
|
handleStop()
|
||||||
const newChatList = config?.opening_statement
|
const newChatList = config?.opening_statement
|
||||||
? [{
|
? [{
|
||||||
id: `${Date.now()}`,
|
id: `${Date.now()}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user