diff --git a/src/api/newsInfo.ts b/src/api/newsInfo.ts
index 406d0a7..8d873d8 100644
--- a/src/api/newsInfo.ts
+++ b/src/api/newsInfo.ts
@@ -51,5 +51,5 @@ export const getTopIndustryPeriod = (data: any) => {
// 热门标签某时间段内topN列表(右边)
export const getTopSourcePeriod = (data: any) => {
- return request.get("/top_source_period?start_date=" + data.start_date + "&end_date=" + data.end_time + "&limit_num=" + data.limit_num, data);
+ return request.get("/top_source_period?start_date=" + data.start_time + "&end_date=" + data.end_time + "&limit_num=" + data.limit_num, data);
};
diff --git a/src/components/charts/LineHolYellow.vue b/src/components/charts/LineHolYellow.vue
index d9177fc..ad1b0fa 100644
--- a/src/components/charts/LineHolYellow.vue
+++ b/src/components/charts/LineHolYellow.vue
@@ -19,7 +19,7 @@ const values = ref([]);
const props = defineProps({
data: {
type: Object,
- default: () => {},
+ default: () => { },
},
});
@@ -114,6 +114,14 @@ const initChart = () => {
myChart.setOption(option);
};
+watch(
+ () => props.data,
+ (newVal) => {
+ if (newVal) {
+ initChart();
+ }
+ }
+);
onMounted(async () => {
// await getData();
// initChart();
@@ -122,7 +130,6 @@ onMounted(async () => {
// initChart();
// }, 5000);
- initChart();
});
diff --git a/src/pages/realtimeInfo/indexRelease.vue b/src/pages/realtimeInfo/indexRelease.vue
index 24cdb22..aaad624 100644
--- a/src/pages/realtimeInfo/indexRelease.vue
+++ b/src/pages/realtimeInfo/indexRelease.vue
@@ -73,7 +73,8 @@
-
+
@@ -100,11 +101,8 @@
退出登录
-
+
@@ -263,7 +261,7 @@ const lineTopData = ref({});
async function getLineDataFn() {
if (lineTabIndex.value == 0) {
// 行业
- getTopConceptPeriod({
+ getTopIndustryPeriod({
start_time: "2025-09-06",
end_time: "2025-09-13",
limit_num: 10,
@@ -272,7 +270,7 @@ async function getLineDataFn() {
});
} else if (lineTabIndex.value == 1) {
// 概念
- getTopIndustryPeriod({
+ getTopConceptPeriod({
start_time: "2025-09-06",
end_time: "2025-09-13",
limit_num: 10,