feat(file-check): 新增文件检核相关 API 和工具,替换 RoHS 检核功能
This commit is contained in:
1 parent
fa0cdee8df
commit
24310b63b3
35 files changed
+3066
-659
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { computed, onBeforeUnmount, ref, type Ref, watch } from 'vue';
|
||||
import { buildLogProgressUrl } from '../utils/toolRunProgressConfig';
|
||||
import { buildFileCheckLogProgressUrl } from '../utils/toolRunProgressConfig';
|
||||
import { getToolRunProgress, type ToolRunProgress } from '../api/toolRunProgress.api';
|
||||
import type { ToolRunProgressMatchSource } from '../types/tool-run-progress.types';
|
||||
|
||||
@@ -124,10 +124,11 @@ export function useToolRunProgress(
|
||||
return fetchProgressUrl(sessionUrl, silent);
|
||||
}
|
||||
const taskId = Number(cfg.schedule_task_id ?? cfg.task_id);
|
||||
const sessionId = String(cfg.session_id || '').trim();
|
||||
if (!Number.isFinite(taskId) || taskId <= 0 || !sessionId) return null;
|
||||
const fallbackUrl = buildLogProgressUrl('/api/workspace/rohs-check/runs/for-log', taskId, Number(cfg.chat_log_id));
|
||||
return fetchProgressUrl(fallbackUrl, silent);
|
||||
const chatLogId = Number(cfg.chat_log_id);
|
||||
if (!Number.isFinite(taskId) || taskId <= 0 || !Number.isFinite(chatLogId) || chatLogId <= 0) {
|
||||
return null;
|
||||
}
|
||||
return fetchProgressUrl(buildFileCheckLogProgressUrl(taskId, chatLogId), silent);
|
||||
};
|
||||
|
||||
const refresh = async () => {
|
||||
|
||||
Reference in new issue
Block a user