Auto-reconnect CTP with new front-end addresses after saving settings

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 17:51:18 +08:00
parent b641a4eaa0
commit ca541d5fc3
3 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -131,7 +131,7 @@
<h2>CTP 连接</h2>
<div class="card-body">
<p class="hint" style="margin-bottom:.85rem">
投资者代码、密码、前置地址在此维护(优先于 <code>.env</code>)。保存后请在持仓监控页点击「重连 CTP
投资者代码、密码、前置地址在此维护(优先于 <code>.env</code>)。保存后将自动断开并用新地址重连 CTP。
{% if ctp_status.connected %}
<span class="badge profit" style="margin-left:.35rem">已连接</span>
{% elif ctp_status.connecting %}