فهرست منبع

fix: chat restart (#2488)

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()}`,