fix: always show OKX options nav tab and allow options page without redirect

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 08:33:23 +08:00
parent 806bb074ab
commit ae0c44e20d
5 changed files with 10 additions and 7 deletions
+3
View File
@@ -2,6 +2,9 @@
data-trade-budget="{{ options_trade_budget | default(10) }}"
data-default-underly="{{ options_default_underly | default('ETH') }}">
<h2>期权(USDⓈ 本位 · 仅买方)</h2>
{% if not options_enabled %}
<div class="flash" style="margin-bottom:12px">期权 API 未启用:请在 <code>crypto_monitor_okx/.env</code> 设置 <code>OKX_OPTIONS_ENABLED=true</code> 及主账户 <code>OKX_OPTIONS_API_*</code>,然后 <code>pm2 restart crypto_okx --update-env</code></div>
{% endif %}
<p class="muted options-hint">资金账户兑换 USDT→USDC 后,划转到交易账户即可买入。报价单位为每 1 ETH/BTC1 张 = 0.01 ETH/BTC。</p>
<div class="options-funds-grid">