diff --git a/lib/instance/instance_display_prefs_lib.py b/lib/instance/instance_display_prefs_lib.py index 6c767b4..1601edb 100644 --- a/lib/instance/instance_display_prefs_lib.py +++ b/lib/instance/instance_display_prefs_lib.py @@ -9,6 +9,8 @@ DISPLAY_RUNTIME_PREFIX = "display." DEFAULT_INSTANCE_DISPLAY: dict[str, bool] = { "show_nav_dashboard": False, + "show_nav_key_monitor": True, + "show_nav_trade": True, "show_nav_strategy": True, "show_nav_strategy_records": True, "show_nav_records": True, @@ -28,6 +30,8 @@ DEFAULT_INSTANCE_DISPLAY: dict[str, bool] = { DISPLAY_LABELS: dict[str, str] = { "show_nav_dashboard": "数据看板", + "show_nav_key_monitor": "关键位监控", + "show_nav_trade": "实盘下单", "show_nav_strategy": "策略交易", "show_nav_strategy_records": "策略交易记录", "show_nav_records": "交易记录与复盘", @@ -47,6 +51,8 @@ DISPLAY_LABELS: dict[str, str] = { NAV_TAB_ALLOWED: dict[str, str] = { "dashboard": "show_nav_dashboard", + "key_monitor": "show_nav_key_monitor", + "trade": "show_nav_trade", "strategy": "show_nav_strategy", "strategy_records": "show_nav_strategy_records", "records": "show_nav_records", @@ -110,6 +116,8 @@ def tab_allowed(tab: str, display: Optional[dict[str, bool]] = None) -> bool: def display_meta_for_ui() -> list[dict[str, Any]]: nav_keys = [ "show_nav_dashboard", + "show_nav_key_monitor", + "show_nav_trade", "show_nav_strategy", "show_nav_strategy_records", "show_nav_records", diff --git a/lib/instance/templates/display_prefs_panel.html b/lib/instance/templates/display_prefs_panel.html index 05a6622..38a744b 100644 --- a/lib/instance/templates/display_prefs_panel.html +++ b/lib/instance/templates/display_prefs_panel.html @@ -1,7 +1,7 @@ {# 系统设置 · 导航显示开关(SSR 预渲染,保存仍走 API) #}
以下开关控制顶栏导航与系统设置内区块是否显示,保存后立即生效.关键位监控,实盘下单,系统设置为固定项.
+以下开关控制顶栏导航与系统设置内区块是否显示,保存后立即生效.系统设置为固定项.