浏览代码

fix: chat restart (#2488)

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

正在加载...
取消
保存