diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html index 203caf0..d0a2e9d 100644 --- a/web/strategy-switch-console/index.html +++ b/web/strategy-switch-console/index.html @@ -2769,6 +2769,20 @@

切换摘要

const entry = byPlatform[key]; if (currentEntryHasState(entry)) return entry; } + // No prior switch-console entry — build a synthetic entry from + // account-option defaults so the UI still shows meaningful values. + const profile = cleanStrategyProfile(account?.default_strategy_profile || account?.strategy_profile || ""); + if (profile || account?.cash_only_execution_mode || account?.reserved_cash_policy_mode) { + const synth = { strategy_profile: profile }; + if (account?.cash_only_execution_mode === "enabled" || account?.cash_only_execution_mode === "disabled") { + synth.cash_only_execution = account.cash_only_execution_mode === "enabled"; + } + if (account?.min_reserved_cash_usd) synth.min_reserved_cash_usd = account.min_reserved_cash_usd; + if (account?.reserved_cash_ratio) synth.reserved_cash_ratio = account.reserved_cash_ratio; + if (account?.reserve_policy_mode) synth.reserve_policy_mode = account.reserve_policy_mode; + if (account?.runtime_target_enabled !== undefined) synth.runtime_target_enabled = account.runtime_target_enabled; + return synth; + } return null; } diff --git a/web/strategy-switch-console/page_asset.js b/web/strategy-switch-console/page_asset.js index aaa9413..023f266 100644 --- a/web/strategy-switch-console/page_asset.js +++ b/web/strategy-switch-console/page_asset.js @@ -1,2 +1,2 @@ // Generated by scripts/sync_strategy_switch_page_asset.py; do not edit by hand. -export const PAGE_HTML = "\n\n\n \n \n \n QuantRuntimeSettings Strategy Switch\n \n \n\n\n
\n
\n

策略切换

\n

选平台、目标账号和策略,一次执行完成切换。

\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n 初始化控制台\n

读取策略配置

\n

正在读取登录状态、账号配置和当前状态。

\n
\n
\n
\n\n
\n \n\n
\n
\n
\n 当前平台\n

LongBridge

\n
\n\n \n\n \n\n
\n \n\n \n\n
\n 模式\n
\n \n \n
\n \n
\n\n
\n \n\n \n\n \n
\n\n
\n \n\n \n\n \n
\n\n
\n \n
\n\n
\n

现金与融资

\n

允许融资与预留现金覆盖不能同时生效。

\n \n
\n \n\n \n\n \n\n \n
\n
\n\n
\n \n\n \n
\n
\n\n
\n \n

登录后才可执行切换。

\n

\n
\n
\n\n \n
\n
\n\n \n\n\n"; +export const PAGE_HTML = "\n\n\n \n \n \n QuantRuntimeSettings Strategy Switch\n \n \n\n\n
\n
\n

策略切换

\n

选平台、目标账号和策略,一次执行完成切换。

\n
\n
\n \n \n \n \n
\n
\n\n
\n
\n 初始化控制台\n

读取策略配置

\n

正在读取登录状态、账号配置和当前状态。

\n
\n
\n
\n\n
\n \n\n
\n
\n
\n 当前平台\n

LongBridge

\n
\n\n \n\n \n\n
\n \n\n \n\n
\n 模式\n
\n \n \n
\n \n
\n\n
\n \n\n \n\n \n
\n\n
\n \n\n \n\n \n
\n\n
\n \n
\n\n
\n

现金与融资

\n

允许融资与预留现金覆盖不能同时生效。

\n \n
\n \n\n \n\n \n\n \n
\n
\n\n
\n \n\n \n
\n
\n\n
\n \n

登录后才可执行切换。

\n

\n
\n
\n\n \n
\n
\n\n \n\n\n";