diff --git a/static/app.js b/static/app.js index c879999..8a74cdb 100644 --- a/static/app.js +++ b/static/app.js @@ -3,8 +3,6 @@ // GET /api/queue -> { pending: [], current: { task, startedAt, log } | null } // GET /api/history -> { scripts: [], history: { scriptPath: [record, ...] } } -const POLL_QUEUE_MS = 1500; // 队列 + 当前执行 轮询周期 -const POLL_HISTORY_MS = 4000; // 历史 轮询周期 const LOG_TAIL_CHARS = 12000; // 前端日志渲染尾部最大字符数 const state = { @@ -313,5 +311,3 @@ document.addEventListener("keydown", (e) => { pollQueue(); pollHistory(); -setInterval(pollQueue, POLL_QUEUE_MS); -setInterval(pollHistory, POLL_HISTORY_MS);