mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
fix: chat restart (#2488)
This commit is contained in:
@@ -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()}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user