From 276c8593e46d49989ba229b7bc0422a2e26c4044 Mon Sep 17 00:00:00 2001 From: Lxy Date: Thu, 9 Jul 2026 00:35:32 +0800 Subject: [PATCH] =?UTF-8?q?tweak:=20=E4=BA=A4=E6=98=93=E5=A4=8D=E7=9B=98?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=E8=BF=91=E4=B8=80=E5=91=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/futures_analysis.html | 4 ++-- app/static/futures_analysis.js | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/app/static/futures_analysis.html b/app/static/futures_analysis.html index 62a2c9e..06f280e 100644 --- a/app/static/futures_analysis.html +++ b/app/static/futures_analysis.html @@ -1193,8 +1193,8 @@
- - + + diff --git a/app/static/futures_analysis.js b/app/static/futures_analysis.js index addb558..d92f4d2 100644 --- a/app/static/futures_analysis.js +++ b/app/static/futures_analysis.js @@ -1632,20 +1632,10 @@ function initTradeReview() { } async function trInitDefaultDate() { - try { - const res = await fetch(`${TR_API_BASE}/latest-trade-date`); - const json = await res.json(); - if (json.success && json.data.trade_date) { - const dateStr = json.data.trade_date; - document.getElementById('tr-start-date').value = dateStr; - document.getElementById('tr-end-date').value = dateStr; - } - } catch (e) { - console.error('获取最后交易日失败', e); - } // 初始化快捷日期按钮 trInitQuickDates(); - trLoadAllData(); + // 默认加载近一周数据 + trSetDateRange('week'); } function trInitQuickDates() {