修改队列处理逻辑,添加自动停止机制

This commit is contained in:
imeepos
2025-07-14 16:33:11 +08:00
parent bb240833a4
commit 29e77c2b6f
2 changed files with 36 additions and 23 deletions

View File

@@ -173,21 +173,6 @@ export const AiAnalysisLogViewer: React.FC<AiAnalysisLogViewerProps> = ({ projec
}
};
// 创建测试数据
const handleCreateTestData = async () => {
try {
const result = await invoke('create_test_ai_analysis_logs', {
projectId,
});
console.log('创建测试数据结果:', result);
// 重新加载数据
loadLogs();
loadStats();
} catch (err) {
console.error('创建测试数据失败:', err);
}
};
// 重试失败任务
const handleRetryTask = async (taskId: string) => {
try {
@@ -354,13 +339,6 @@ export const AiAnalysisLogViewer: React.FC<AiAnalysisLogViewerProps> = ({ projec
>
<Download className="w-4 h-4" />
</button>
<button
onClick={handleCreateTestData}
className="px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors text-sm"
title="创建测试数据"
>
</button>
</div>
</div>
</div>