Add files via upload

This commit is contained in:
公明
2026-07-22 21:01:56 +08:00
committed by GitHub
parent d9cb0b11c5
commit 93ab362b6f
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -4532,6 +4532,10 @@ async function loadConversation(conversationId) {
// 更新当前对话ID
currentConversationId = conversationId;
window._loadedConversationProjectId = conversation.projectId || conversation.project_id || '';
const conversationRoleName = conversation.roleName || conversation.role_name || '';
if (typeof window.setCurrentRole === 'function') {
window.setCurrentRole(conversationRoleName || '默认');
}
try {
window.currentConversationId = conversationId;
} catch (e) { /* ignore */ }