feat: 提交一下

This commit is contained in:
2026-06-12 16:15:57 +08:00
parent b137fd7915
commit f9f8a7b13d
25 changed files with 13938 additions and 776 deletions

View File

@@ -588,16 +588,8 @@ export default function TopicsPage({ sessions = [], onToast }) {
clearInterval(poll)
handleSelectTopic(selectedTopic)
onToast?.('AI 报告生成完成')
// 报告生成成功后,如果已绑定知识库则自动上传
try {
const freshDetail = await getTopic(selectedTopic.id)
const reportContent = freshDetail?.knowledge_doc?.content
if (reportContent) {
await uploadToKnowledgeBaseIfBound(selectedTopic.title, reportContent)
}
} catch {
// 获取报告详情失败不影响主流程
}
// 自动上传知识库已关闭:报告生成完成后不再自动同步到万川知识库。
// 如需恢复,可在此处重新调用 uploadToKnowledgeBaseIfBound(selectedTopic.title, reportContent)。
setSummarizeProgress(null)
setSummarizing(false)
return