工作台隐藏中控顶栏与报价并铺满视口,登录后默认进入总览。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 20:59:09 +08:00
parent f5bddb360a
commit b92c463fb1
3 changed files with 27 additions and 11 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=31">
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=32">
</head>
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path.startswith('/settings') %}page-settings{% elif request.path.startswith('/cond_orders') %}page-cond-orders{% elif request.path == '/' %}page-dashboard{% endif %}">
{% if session.get('logged_in') %}
@@ -47,11 +47,11 @@
{% endwith %}
{% block body %}{% endblock %}
</main>
{% if session.get('logged_in') %}
{% if session.get('logged_in') and not request.path.startswith('/desk') %}
<script src="{{ url_for('static', filename='hub_quotes.js') }}?v=1"></script>
{% endif %}
{% block scripts %}{% endblock %}
{% if session.get('logged_in') %}
{% if session.get('logged_in') and not request.path.startswith('/desk') %}
<script>if (window.HubQuotes) HubQuotes.boot();</script>
{% endif %}
</body>