修改队列处理逻辑,添加自动停止机制
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user