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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user