fix(chat): 修复固资管理首轮问答残留中断与历史会话异常
This commit is contained in:
1 parent
25876f94bd
commit
3b771fc0b6
16 files changed
+1042
-35
No files matched your search
@@ -121,13 +121,17 @@ export function useChatSessions(options: UseChatSessionsOptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
await loadConversation(item.conversation_id, { force: true });
|
||||
isSidebarOpen.value = false;
|
||||
|
||||
if (item.conversation_id.startsWith('pending:')) return;
|
||||
|
||||
const currentConvId = typeof route.query.conversation_id === 'string' ? route.query.conversation_id : '';
|
||||
if (currentConvId === item.conversation_id) return;
|
||||
if (currentConvId === item.conversation_id) {
|
||||
if (conversationId.value !== item.conversation_id || activeRunId.value) {
|
||||
await loadConversation(item.conversation_id, { force: true });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const nextQuery: Record<string, string | string[]> = { ...route.query, conversation_id: item.conversation_id };
|
||||
delete nextQuery.task_id;
|
||||
|
||||
Reference in new issue
Block a user