feat: 更换会话id

This commit is contained in:
zoujing
2026-01-21 17:07:48 +08:00
parent b8cdf530fc
commit bdb685b4ec

View File

@@ -94,7 +94,7 @@ const inputMessage = ref("");
const isSendingMessage = ref(false); const isSendingMessage = ref(false);
/// agentId 首页接口中获取 /// agentId 首页接口中获取
const agentId = ref("1"); const agentId = ref("1953462165250859010");
/// 会话ID 历史数据接口中获取 /// 会话ID 历史数据接口中获取
const conversationId = ref(""); const conversationId = ref("");
// 会话进行中标志 // 会话进行中标志
@@ -605,6 +605,7 @@ const sendChat = async (message: string, isInstruct = false) => {
pendingMap.delete(currentSessionMessageId); pendingMap.delete(currentSessionMessageId);
pendingTimeouts.delete(currentSessionMessageId); pendingTimeouts.delete(currentSessionMessageId);
isSessionActive.value = false; isSessionActive.value = false;
isSendingMessage.value = false;
setTimeoutScrollToBottom(); setTimeoutScrollToBottom();
} }
}, MESSAGE_TIMEOUT); }, MESSAGE_TIMEOUT);