Make hedge the default home and drop unused product-surface entries.

Put永期/期期对冲 first in nav, default embed tab to hedge_plan, and remove risk-policy/options-account UI instead of only hiding them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 18:51:57 +08:00
parent cfecbcfbb5
commit d40a0d25be
8 changed files with 49 additions and 61 deletions
+3 -3
View File
@@ -44,7 +44,7 @@
const t = new URLSearchParams(location.search).get("tab");
if (t) return t;
} catch (_) {}
return document.body.getAttribute("data-page") || "trade";
return document.body.getAttribute("data-page") || "hedge_plan";
}
function listWindowQueryString() {
@@ -401,7 +401,7 @@
const options = opts || {};
if (!tab) return;
if (!pageNavAllowed(tab)) {
void loadTab("trade", { replace: true });
void loadTab("hedge_plan", { replace: true });
return;
}
@@ -564,7 +564,7 @@
initBootPane();
const bootTab = getTab();
if (!pageNavAllowed(bootTab)) {
void loadTab("trade", { replace: true });
void loadTab("hedge_plan", { replace: true });
return;
}
if (bootTab === "settings") {