()
| 327 | } |
| 328 | |
| 329 | async function runNow() { |
| 330 | const btn = document.getElementById('selfcheck-run-now-btn'); |
| 331 | if (!btn) return; |
| 332 | loading.show(btn, '请求中...'); |
| 333 | try { |
| 334 | const data = await api.post('/selfcheck/schedule/run-now', {}); |
| 335 | renderRuntime(data?.runtime || {}); |
| 336 | toast.success(data?.message || '已请求立即执行'); |
| 337 | await loadRuns(); |
| 338 | } catch (error) { |
| 339 | toast.error(parseErrorMessage(error)); |
| 340 | } finally { |
| 341 | loading.hide(btn); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | async function executeRepair(runId, repairKey, btn) { |
| 346 | if (!runId || !repairKey) return; |
nothing calls this directly
no test coverage detected