Keep settings on transfer tab after manual USDT transfer redirect.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 08:27:15 +08:00
parent cb4f6aaa4b
commit 7ebe1671b2
4 changed files with 14 additions and 7 deletions
+8 -1
View File
@@ -6,9 +6,16 @@
</div>
{% if settings_tabs %}
{% set active_settings_tab = (request.args.get('tab') or '').strip() %}
{% set ns = namespace(active_idx=0) %}
{% for tab in settings_tabs %}
{% if active_settings_tab and tab.key == active_settings_tab %}
{% set ns.active_idx = loop.index0 %}
{% endif %}
{% endfor %}
<div class="env-config-body card settings-config-body">
{% for tab in settings_tabs %}
<input type="radio" name="settings-section" id="settings-sec-{{ loop.index0 }}" class="env-tab-radio"{% if loop.first %} checked{% endif %}>
<input type="radio" name="settings-section" id="settings-sec-{{ loop.index0 }}" class="env-tab-radio"{% if loop.index0 == ns.active_idx %} checked{% endif %}>
{% endfor %}
<div class="env-config-tabs" role="tablist" aria-label="系统设置分类">
{% for tab in settings_tabs %}