diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e5df93d..98ae4d0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -24,6 +24,6 @@ jobs: set -euo pipefail python3 scripts/sync_strategy_switch_page_asset.py git diff --exit-code -- web/strategy-switch-console/page_asset.js - sed -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

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"; diff --git a/web/strategy-switch-console/worker.js b/web/strategy-switch-console/worker.js index 0b9dbf0..c3ad332 100644 --- a/web/strategy-switch-console/worker.js +++ b/web/strategy-switch-console/worker.js @@ -586,6 +586,7 @@ function cleanAccountOption(item, platform, index) { addConfigOptional(option, "deployment_selector", item.deployment_selector, cleanSlug); addConfigOptional(option, "account_scope", item.account_scope, cleanSlug); addConfigOptional(option, "service_name", item.service_name, cleanSlug); + addConfigOptional(option, "default_strategy_profile", item.default_strategy_profile || item.strategy_profile, cleanSlug); addConfigOptional(option, "github_environment", item.github_environment, cleanSlug); addConfigOptional(option, "variable_scope", item.variable_scope, (value, field) => cleanChoice(value || "default", ["default", "repository", "environment"], field),