取消统一转发Dify请求,改为由客户端直接发送

This commit is contained in:
pingchuan
2025-07-01 15:54:28 +08:00
parent d4846869eb
commit ce851cc448
13 changed files with 12749 additions and 249 deletions
+1 -11
View File
@@ -113,8 +113,6 @@ export default function useConversation() {
isSetToLocalStorage = true,
newConversationName = ''
) => {
// console.log('🔄 设置当前会话ID:', { id, appId, isSetToLocalStorage });
doSetCurrConversationId(id);
if (isSetToLocalStorage && id !== '-1') {
@@ -130,19 +128,11 @@ export default function useConversation() {
globalThis.localStorage?.setItem(storageConversationIdKey, JSON.stringify(conversationIdInfo));
// console.log('💾 会话ID已保存到localStorage:', {
// appUrlKey,
// conversationId: id,
// fullStorage: conversationIdInfo
// });
} catch (error) {
console.error('保存会话ID到本地存储失败:', error);
}
}
// 不进行URL导航,保持单页面应用模式
// console.log('✅ 会话切换完成,当前会话ID:', id);
};
};
/**
* 重置新会话输入