成交行情按日期获取全部数据

This commit is contained in:
甲辰生产 2026-04-11 21:53:23 +08:00
parent afa217e1b5
commit 4f6de4d3ac
1 changed files with 5 additions and 3 deletions

View File

@ -82,11 +82,13 @@ export default function News() {
const headers = token ? { Authorization: `Bearer ${token}` } : {} const headers = token ? { Authorization: `Bearer ${token}` } : {}
// URL // URL
let url = `${API_BASE}/api/information/list?info_type=${type}&page=${currentPage}&page_size=50` let url = `${API_BASE}/api/information/list?info_type=${type}`
// tab // tab
if (activeTab === 'deal' && dealDate) { if (activeTab === 'deal' && dealDate) {
url += `&deal_date=${dealDate}` url += `&deal_date=${dealDate}&page_size=500`
} else {
url += `&page=${currentPage}&page_size=50`
} }
const res = await fetch(url, { headers }) const res = await fetch(url, { headers })