diff --git a/src/pages/realtimeInfo/indexRelease.vue b/src/pages/realtimeInfo/indexRelease.vue index 43e5dce..307e1bd 100644 --- a/src/pages/realtimeInfo/indexRelease.vue +++ b/src/pages/realtimeInfo/indexRelease.vue @@ -260,8 +260,8 @@ async function getLineDataFn() { if (lineTabIndex.value == 0) { // 行业 getTopIndustryPeriod({ - start_time: "2025-09-06", - end_time: "2025-09-13", + start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"), + end_time: dayjs().format("YYYY-MM-DD"), limit_num: 10, }).then((res) => { lineTopData.value = res; @@ -269,8 +269,8 @@ async function getLineDataFn() { } else if (lineTabIndex.value == 1) { // 概念 getTopConceptPeriod({ - start_time: "2025-09-06", - end_time: "2025-09-13", + start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"), + end_time: dayjs().format("YYYY-MM-DD"), limit_num: 10, }).then((res) => { lineTopData.value = res; @@ -278,8 +278,8 @@ async function getLineDataFn() { } else if (lineTabIndex.value == 2) { // 媒体 getTopSourcePeriod({ - start_time: "2025-09-06", - end_time: "2025-09-13", + start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"), + end_time: dayjs().format("YYYY-MM-DD"), limit_num: 10, }).then((res) => { lineTopData.value = res;