From eba239bc3110a2b930468099a59bbf1aebd24cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= <523037378@qq.com> Date: Fri, 15 Nov 2024 10:29:15 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=8D=E9=80=9A=E8=BF=87=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 5f621784ff9732d7ef69384ef3e3b9f725d6c02c) Co-authored-by: chenjinsong <523037378@qq.com> --- .../charts/networkOverview/NetworkOverviewLine.vue | 13 +++++++------ .../entityGraph/GraphEntityDetail.vue | 1 - src/views/entityExplorer/entityList/Row.vue | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue index dc75fe00..7eb57c54 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue @@ -202,7 +202,6 @@ export default { this.toggleLoading(true) axios.get(url, { params: params }).then(response => { const res = response.data - console.info(res) if (response.status === 200) { this.chartDateObject = res.data.result this.isNoData = res.data.result.length === 0 @@ -425,11 +424,13 @@ export default { } }) } - const series = this.tabs.filter(tab => tab.show) - const yAxisStartValue = getYAxisBeginValue(series) - const _option = this.myChart.getOption() - _option.yAxis[0].startValue = yAxisStartValue - this.myChart.setOption(_option) + if (this.myChart) { + const series = this.tabs.filter(tab => tab.show) + const yAxisStartValue = getYAxisBeginValue(series) + const _option = this.myChart.getOption() + _option.yAxis[0].startValue = yAxisStartValue + this.myChart.setOption(_option) + } } if (val === 'active') { this.tabs.forEach(t => { diff --git a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue index f2242439..43642359 100644 --- a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue +++ b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue @@ -186,7 +186,6 @@ export default { } }, mounted () { - console.info(this.node) this.handleDetailData(this.node) }, setup (props) { diff --git a/src/views/entityExplorer/entityList/Row.vue b/src/views/entityExplorer/entityList/Row.vue index e0d18b9e..09ece5a5 100644 --- a/src/views/entityExplorer/entityList/Row.vue +++ b/src/views/entityExplorer/entityList/Row.vue @@ -290,7 +290,6 @@ export default { }, initTagsData () { let url = '' - console.info(this.entity) switch (this.entity.entityType) { case ('domain'): { url = api.entity.entityList.domainTags