fix(ai-chat): 修复历史消息加载逻辑及超时问题

This commit is contained in:
2026-05-13 09:00:20 +08:00
parent d5ca77e2d8
commit b2688dc8a1
2 changed files with 99 additions and 106 deletions

View File

@@ -210,14 +210,6 @@ export default {
}
});
const timeout = setTimeout(() => {
if (!isAuthenticated || content === '') {
console.warn('WebSocket 超时,强制关闭');
socketTask.close();
safeComplete({ error: 'AI服务响应超时' });
safeReject(new Error('AI服务响应超时'));
}
}, 20000);
});
// #endif
},