fix(web): remove duplicate loadAllEquipmentCards call in startOps

startOps() was calling loadAllEquipmentCards() redundantly — the
units-loaded event listener already calls it after loadUnits()
completes. This caused two parallel requests to /api/unit/:id/detail
for every unit on page load.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
caoqianming 2026-03-26 09:23:09 +08:00
parent 08add0d087
commit 0e8d194a70
1 changed files with 0 additions and 1 deletions

View File

@ -192,7 +192,6 @@ function renderOpsEquipments(equipments) {
export function startOps() {
renderOpsUnits();
loadAllEquipmentCards();
dom.batchStartAutoBtn?.addEventListener("click", () => {
apiFetch("/api/control/unit/batch-start-auto", { method: "POST" })