zxhlyh 1 рік тому
батько
коміт
eedbe1b770
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      web/app/components/base/chat/chat/hooks.ts

+ 2 - 1
web/app/components/base/chat/chat/hooks.ts

@@ -146,8 +146,9 @@ export const useChat = (
   }, [stopChat, handleResponsing])
 
   const handleRestart = useCallback(() => {
-    handleStop()
     connversationId.current = ''
+    taskIdRef.current = ''
+    handleStop()
     const newChatList = config?.opening_statement
       ? [{
         id: `${Date.now()}`,