LongBridge
\n登录后才可执行切换。
\n \nFrom 172c322ec940a0dfe0964f9033dec38b159716d9 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Tue, 9 Jun 2026 14:43:57 +0800 Subject: [PATCH] Preserve manual switch selections --- tests/strategy_switch_worker_validation.mjs | 8 ++++++++ web/strategy-switch-console/index.html | 1 - web/strategy-switch-console/page_asset.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/strategy_switch_worker_validation.mjs b/tests/strategy_switch_worker_validation.mjs index 824a9fa..00dcf38 100644 --- a/tests/strategy_switch_worker_validation.mjs +++ b/tests/strategy_switch_worker_validation.mjs @@ -1,7 +1,15 @@ import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import { dirname, resolve } from "node:path"; import { __test } from "../web/strategy-switch-console/worker.js"; +const root = resolve(dirname(fileURLToPath(import.meta.url)), ".."); +const indexHtml = readFileSync(resolve(root, "web/strategy-switch-console/index.html"), "utf8"); +const renderPlatformsBody = indexHtml.match(/function renderPlatforms\(\) \{([\s\S]*?)\n \}/)?.[1] || ""; +assert.ok(!renderPlatformsBody.includes("syncStrategyForAccount(")); + const strategyProfiles = __test.normalizeStrategyProfilesPayload( [ { diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html index 8f1eeec..5b8566c 100644 --- a/web/strategy-switch-console/index.html +++ b/web/strategy-switch-console/index.html @@ -1059,7 +1059,6 @@
选平台、目标账号和策略,一次执行完成切换。
\n登录后才可执行切换。
\n \n选平台、目标账号和策略,一次执行完成切换。
\n登录后才可执行切换。
\n \n