fix(ai-chat): 修复历史消息加载逻辑及超时问题
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user