从导航显示与顶栏去掉「对冲计划」开关与入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-09-30 23:28:01 +08:00
parent 0acba5e351
commit 56df9a596f
7 changed files with 20 additions and 30 deletions
+6 -4
View File
@@ -46,8 +46,6 @@
options: "show_nav_options",
"options-review": "show_nav_options_review",
options_review: "show_nav_options_review",
"hedge-plan": "show_nav_hedge_plan",
hedge_plan: "show_nav_hedge_plan",
risk_policy: "show_nav_risk_policy",
system_guide: "show_nav_system_guide",
env_config: "show_nav_env_config",
@@ -59,6 +57,11 @@
.forEach((a) => {
const tab = a.getAttribute("data-embed-tab") || (a.getAttribute("href") || "").replace(/^\//, "").split("?")[0];
if (tab === "more") return;
if (tab === "hedge_plan" || tab === "hedge-plan") {
a.classList.add("nav-hidden");
a.style.display = "none";
return;
}
const key = map[tab];
if (!key) return;
const show = navPrefShow(display, key);
@@ -70,6 +73,7 @@
function pageNavAllowed(tab) {
const d = DISPLAY();
if (tab === "hedge_plan" || tab === "hedge-plan") return false;
const map = {
dashboard: "show_nav_dashboard",
account_ledger: "show_nav_account_ledger",
@@ -82,8 +86,6 @@
options: "show_nav_options",
"options-review": "show_nav_options_review",
options_review: "show_nav_options_review",
"hedge-plan": "show_nav_hedge_plan",
hedge_plan: "show_nav_hedge_plan",
risk_policy: "show_nav_risk_policy",
system_guide: "show_nav_system_guide",
env_config: "show_nav_env_config",