From cb11b1d39876166967dfff09e24d32040cd5f1e1 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Sun, 28 Jun 2026 00:50:57 +0800 Subject: [PATCH] Fix strategy switch console boot hang by adding missing section ids. renderControls toggles income-layer and option-overlay visibility by id; without those ids render() threw and blocked boot from completing. Co-authored-by: Cursor --- tests/strategy_switch_worker_validation.mjs | 4 +++- web/strategy-switch-console/index.html | 4 ++-- web/strategy-switch-console/page_asset.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/strategy_switch_worker_validation.mjs b/tests/strategy_switch_worker_validation.mjs index 095fed7..fd59271 100644 --- a/tests/strategy_switch_worker_validation.mjs +++ b/tests/strategy_switch_worker_validation.mjs @@ -43,7 +43,9 @@ assert.ok(indexHtml.includes('class="form-section execution-cash-policy-section" assert.ok(indexHtml.includes('function reconcileExecutionCashPolicy(')); assert.ok(indexHtml.includes('qmt: { label: "QMT"')); assert.ok(indexHtml.includes('cn_industry_etf_rotation')); -assert.ok(indexHtml.includes('platformDryRunOnly')); +assert.ok(indexHtml.includes('id="income-layer-section"')); +assert.ok(indexHtml.includes('id="option-overlay-section"')); +assert.ok(indexHtml.includes('id="mode-meta"')); assert.ok(indexHtml.includes('qmtDryRunOnlyNote')); assert.ok(indexHtml.includes('cashOnlyExecutionMode: "允许融资"')); assert.ok(indexHtml.includes('cashOnlyExecutionValueYes: "允许融资:是"')); diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html index ee894dd..6cda9c2 100644 --- a/web/strategy-switch-console/index.html +++ b/web/strategy-switch-console/index.html @@ -1365,7 +1365,7 @@

LongBridge

-
+
-
+