Skip to content

Commit 8bde53f

Browse files
Pigbibiclaude
andcommitted
refactor: 移除下拉框中"沿用当前配置"选项
sync 函数已全部解析为具体值,不再需要 current 选项 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8547ba5 commit 8bde53f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

web/strategy-switch-console/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4115,6 +4115,7 @@ <h2 data-i18n="summary">切换摘要</h2>
41154115
: "";
41164116
runtimeTargetEnabledSelect.replaceChildren();
41174117
for (const mode of runtimeTargetModes) {
4118+
if (mode === "current") continue;
41184119
runtimeTargetEnabledSelect.append(
41194120
new Option(runtimeTargetModeLabel(mode), mode, false, mode === normalizeRuntimeTargetMode(form.runtimeTargetMode)),
41204121
);
@@ -4154,6 +4155,7 @@ <h2 data-i18n="summary">切换摘要</h2>
41544155
if (incomeDefaults) {
41554156
incomeLayerModeSelect.disabled = false;
41564157
for (const mode of incomeLayerModes) {
4158+
if (mode === "current") continue;
41574159
incomeLayerModeSelect.append(new Option(incomeLayerModeLabel(mode), mode, false, mode === normalizeIncomeLayerMode(form.incomeLayerMode)));
41584160
}
41594161
el("income-layer-mode-meta").textContent = incomeLayerDefaultMetaText(incomeDefaults);
@@ -4184,6 +4186,7 @@ <h2 data-i18n="summary">切换摘要</h2>
41844186
if (supportsReserve) {
41854187
reservePolicyModeSelect.replaceChildren();
41864188
for (const mode of reservePolicyModes) {
4189+
if (mode === "current") continue;
41874190
reservePolicyModeSelect.append(new Option(t(`reservePolicy${mode[0].toUpperCase()}${mode.slice(1)}`), mode, false, mode === normalizeReservePolicyMode(form.reservePolicyMode)));
41884191
}
41894192
const reserveMode = normalizeReservePolicyMode(form.reservePolicyMode);
@@ -4224,6 +4227,7 @@ <h2 data-i18n="summary">切换摘要</h2>
42244227
if (optionDefaults) {
42254228
optionOverlayModeSelect.disabled = false;
42264229
for (const mode of optionOverlayModes) {
4230+
if (mode === "current") continue;
42274231
optionOverlayModeSelect.append(
42284232
new Option(optionOverlayModeLabel(mode), mode, false, mode === normalizeOptionOverlayMode(form.optionOverlayMode)),
42294233
);
@@ -4239,6 +4243,7 @@ <h2 data-i18n="summary">切换摘要</h2>
42394243
syncCashOnlyExecutionForAccount(platform);
42404244
cashOnlyExecutionModeSelect.replaceChildren();
42414245
for (const mode of cashOnlyExecutionModes) {
4246+
if (mode === "current") continue;
42424247
const option = new Option(
42434248
cashOnlyExecutionModeLabel(mode),
42444249
mode,

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)