diff --git a/src/views/sylive/activity/statistics/components/area-table.vue b/src/views/sylive/activity/statistics/components/area-table.vue index 430d923..74cda45 100644 --- a/src/views/sylive/activity/statistics/components/area-table.vue +++ b/src/views/sylive/activity/statistics/components/area-table.vue @@ -216,9 +216,6 @@ } //折线图 }; }, - created() { - this.getStatisticsStackedArea(); - }, methods: { /* 表格数据源 */ datasource({ page, limit, order }) { @@ -248,6 +245,7 @@ //区域统计折线图 getStatisticsStackedArea() { + this.areaChartOption = { legend: { data: [] } }; const activityId = this.$route.query.id; let kpi = this.kpi; getStatisticsStackedArea({ @@ -300,9 +298,9 @@ if (path !== '/sylive/activity/statistics') { return; } + this.getStatisticsStackedArea(); if (this.$refs.table) { this.$refs.table.reload({ page: 1 }); - this.getStatisticsStackedArea(); } }, immediate: true