mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Fix: The agent is embedded in the webpage; interrupting its operation will redirect to the login page. #12697 (#13224)
### What problem does this PR solve? Fix: The agent is embedded in the webpage; interrupting its operation will redirect to the login page. #12697 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -268,8 +268,10 @@ export const useSendAgentMessage = ({
|
||||
const stopConversation = useCallback(() => {
|
||||
const taskId = answerList.at(0)?.task_id;
|
||||
stopOutputMessage();
|
||||
stopMessage(taskId);
|
||||
}, [answerList, stopMessage, stopOutputMessage]);
|
||||
if (!isShared) {
|
||||
stopMessage(taskId);
|
||||
}
|
||||
}, [answerList, isShared, stopMessage, stopOutputMessage]);
|
||||
|
||||
const sendMessage = useCallback(
|
||||
async ({
|
||||
|
||||
Reference in New Issue
Block a user